Topic awaiting preservation: return confirm before form submittal? |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 09-23-2003 16:47
I have a form that inputs data into a "todo" list. If the user edits a record and sets it as "complete", I'd like to let them know that it can no longer be edited if "complete" has been selected from a list box. How can I find out what was selected (before submitting) and when the user clicks "submit" , a prompt confirms their selection of "complete" with the ability to cancel the submission? HELP! |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-23-2003 17:04
In the form tag: |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 09-23-2003 17:34
Slime, thanks for the tip, but it still does not dynamically recognize that "complete" was selected. This seems to work: |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 09-23-2003 17:52
However, if I try to stck these validations within the function: code: function verify(){
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-23-2003 20:30
Yes remove the "else { return true}" from all the if statements until the last one. |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 09-23-2003 20:57
DOH!! I see now! Thanks bitdamaged! |