S
Syed Ali
Hello,
I have 1 HTML form with 4 submit buttons and 10 textfield entry areas.
If submit button1 is pressed I need to make sure that all 10 textfield
entries have been filled before submitting the form.
If submit button2 is pressed I need to make sure that only textfied1
is filled before submitting the form.
How do I go about doing the above check?
I used -onSubmit with the HTML form tab, but I am not sure how to
check which button was pressed, i.e., how do I reference submit1,
submit2 button in my logic of:
if submit1 then
if all textfields have been completed then
return true
else
return false
I also tried to used -onClick with each Submit button, but returning
false if all textfields have not been filled still causes the form to
get submitted to the CGI script because the HTML form submit itself
has no -onSubmit handler.
THank you!
I have 1 HTML form with 4 submit buttons and 10 textfield entry areas.
If submit button1 is pressed I need to make sure that all 10 textfield
entries have been filled before submitting the form.
If submit button2 is pressed I need to make sure that only textfied1
is filled before submitting the form.
How do I go about doing the above check?
I used -onSubmit with the HTML form tab, but I am not sure how to
check which button was pressed, i.e., how do I reference submit1,
submit2 button in my logic of:
if submit1 then
if all textfields have been completed then
return true
else
return false
I also tried to used -onClick with each Submit button, but returning
false if all textfields have not been filled still causes the form to
get submitted to the CGI script because the HTML form submit itself
has no -onSubmit handler.
THank you!