Showing alert or confirmation after form submission

Hi,

 

Is there a way to show an alert message via jscript after the form has been succesfully submited.

Many of our users are used to doing actions in mobile, where after the action is completed they are notified of this, so for them it is sometimes confusing when they are on their dekstops.

 

I tried using

 

alert('Message Description");

return true"

 

But this is not entirely true because it could be that the form didnt correctly submit, and the other way around does not even show the alert, due to the fact that the form has already been submitted, and I also tried re-opening the folder, but nothing worked.

 

Any suggetions?

 

Thanks,

Tagged:

Comments

  •  

    Here's a way that I've done it in the past... its not very pretty.    I'm sure there are better ways out there.

     

    Create two process variable:  chkCheckProcess, chkProcessCompleted
    Set Re-Open folder to be true under the action extra.
    On "When action completed":

    • Set a chkCheckProcess = true
    • set chkProcessComplete = true at the end of the code base

    On form load of the primary form: check  chkCheckProcess

    if ( getField("chkCheckProcess") ==  true")

    {

      if (getField("chkProcessCompleted") == "true")

      {

         alert ("Complete");

       }

       else {

         alert ("Not Complete");

       }

     

    }

     

    You can add delays and what have you if think the process will take longer.

  • You could open a web page and add your message there. You could easily add a 'close' button too. In the 'on form sumbission' client script I added:

     

    window.open("about:blank").document.write( "Hello World!" );
    return true;

     

    and it does the job as expected.

     


    katie.stewart wrote:

    Hi,

     

    Is there a way to show an alert message via jscript after the form has been succesfully submited.

    Many of our users are used to doing actions in mobile, where after the action is completed they are notified of this, so for them it is sometimes confusing when they are on their dekstops.

     

    I tried using

     

    alert('Message Description");

    return true"

     

    But this is not entirely true because it could be that the form didnt correctly submit, and the other way around does not even show the alert, due to the fact that the form has already been submitted, and I also tried re-opening the folder, but nothing worked.

     

    Any suggetions?

     

    Thanks,


  • Thanks TKLam and Jerome, both approaches are useful depending on the how we want to show the message to the user.