Answered
What do I need to do to add the following script to a setAction method.
var nButton = app.alert({
cMsg: "Are you sure you want to clear all of the fields in this form?",
nIcon: 1,
nType: 2,
cTitle: "Confirm Form Reset",
});
if(nButton == 4)
{
resetForm();
}
I am trying to build a batch sequence that will build a reset button programatically on a page. I have added a setAction to a script several times but they have always been short one liners. I have tried several times to remove the returns but nothing has worked so far. I want to add the how thing above so when the button is built the script will be there so when the reset button is pressed the alert opens asking the user if he or she really wants to reset the form.
In short, you need to escape the quotes and can use "\r" for any carriage returns you want to include.
George