I have managed to get the returned value, however, I would still like to stop the rest of the script from running if "NO" is selected.
I know I should make the rest of the script run in "YES' is selected, but is there a way to exit the script?
1 person found this helpful
Post your question in the forum for LiveCycle Designer.
Why not test for the "Yes" response?
Then you only execute a block of code for the "Yes" answer before continuing with the script. Also the "Yes" block of code will not be executed if any other option is selected.
if (xfa.host.messageBox("The manifest has already been created! Do you wish to continue?","Create Manifest", 2, 2) == 4 )
// put yes processing code here.
I just had to log in to say thank you. I've been wrestling with a similar issue for a couple of days now but when GKaiseril suggested to test the yes response everything worked! Thanks again. Skip