Hi all,
I have a form which enables the user to delete a field. Using javascript, I prompt the user with the: "Are you sure you want to do this? message.
javascript code:
html form is calling the javascript function properly.
I get the alert:
Delete (cityname)?
It is highly recommended you do NOT delete any Cities.
When I click on cancel, the form still submits.
Any ideas?
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Cheers!
Laura
I have a form which enables the user to delete a field. Using javascript, I prompt the user with the: "Are you sure you want to do this? message.
javascript code:
Code:
submitOK = confirm( '\n Delete \"' + my_name + '\" ?\n\r It is highly recommended you do NOT delete any Cities.');
if (!submitOK)
document.location.reload();
if (validHandle == false && submitOK) {
errorString += "\r";
alert(errorString+'\nPlease make changes and submit the form again.');
}
if (validHandle == true) {
return (validHandle == true && submitOK);
}
html form is calling the javascript function properly.
I get the alert:
Delete (cityname)?
It is highly recommended you do NOT delete any Cities.
When I click on cancel, the form still submits.
Any ideas?
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Cheers!
Laura