facebook

additional processing when using the SEND EMAIL action

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #343501 Reply

    Robert Gardner
    Participant

    Perhaps this question has been presented previously…

    Is there a way to script additional code when the SEND MAIL action is completed? I would like to have either a confirmation page displayed or place a text message on the screen from which the send mail was initiated.

    Thank you,

    #343526

    Hi aviator21114,

    Please note that the Send Email function activates an URL like: mailto:myusername@mysite.com?subject=test&body=hello that would make the email composer popup. So it won’t be a way to be sure that user sent the email (Actually, just ran a test and it didn’t work well at all).

    If you want to give it a try you should set your screen as a startup screen an check the form property, then the Form action type as Email. To finish the config on the screen, put a buton on it and the on Click action should be Submit form. When you generate files for it, you will see two additional functions on your custom.js file: phoneui.preSubmitForm_m1_<screenName> and phoneui.postSubmitForm_m1_<screenName>. Add the code you want to be executed when the form is succesfully submited in this last function.

    #343528

    Robert Gardner
    Participant

    Octavio,

    Thank you for the reply. I’m having difficulty understanding the process. Could you post a simple example?

    Thank you again..

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: additional processing when using the SEND EMAIL action

You must be logged in to post in the forum log in