Hi,
i want when someone clicks on he submit button to show up a confirmation box and if he clicks yes to continue, if clicks no to stay in the form.
I've tested this:
I put
function checkAction(myMessage)
{ result=confirm(myMessage);
if (result==true) { return true; } else { return false; }
}
on the field "Form JavaScript: (without the script tags)"
and
<input class="form_button" name="NEXT" type="submit" value="NEXT" onClick="return checkAction(\'bla bla bla\')" />
on the submit button.
When i open the form on my computer i get the box, when i open it on my site nothing comes up.
Any suggestions?
i want when someone clicks on he submit button to show up a confirmation box and if he clicks yes to continue, if clicks no to stay in the form.
I've tested this:
I put
function checkAction(myMessage)
{ result=confirm(myMessage);
if (result==true) { return true; } else { return false; }
}
on the field "Form JavaScript: (without the script tags)"
and
<input class="form_button" name="NEXT" type="submit" value="NEXT" onClick="return checkAction(\'bla bla bla\')" />
on the submit button.
When i open the form on my computer i get the box, when i open it on my site nothing comes up.
Any suggestions?