Hi, I have code that runs on the "enter" event of my submit button (a standard Button with a control type of "submit" and a "mailto:address [at] company [dot] com" URL). When the code runs, a pop up box opens, asking if the users want to continue when they click Submit.
However, the problem is if the user clicks "no" the form will still submit via email. I would like to add some code that if the user clicks no, the submission process should abort. Can someone provide this additional code?
I am using LiveCycle Designer ES and the code I am using for the submit button is:
var cMsg = "Please ensure that all fields are completed.\n\n"
cMsg += "Is this form ready to be submitted? \n\n"
cMsg += "Select YES to LOCK the form (this will also lock the Reset button). The Effective Date will be automatically be inserted.\n\n"
cMsg += "Do you want to Continue?\n\n"
var nRtn = app.alert(cMsg,1,2, "Lock Form?");
if(nRtn == 4)
Appreciate the assistance!
MJ
try
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs