Hopefully someone has come across this situation. I'm new to Form creation but it seems fairly straight forward and I have had some good results just getting basic user information sent to me via a gdform.php.
My delema... When my user hits my Sumbit button that has a Form Validation behavior that checks for required fields & errors, It works great.
I also added a PopUp Text Msg saying 'Thank you, your data has been submitted' after the validated form is submitted that is also triggerd by the onClick. This also works great...
But if there is missing required fields or errors that the Validate catches... my Popup "Thank you msg" follows it regardless if it was correctly validated.
Hopefully I explained this correctly. Is there a way without extensive JavaScript or PHP codeing to put in some type of Behavior stacking ??? Our do I need to write some simple boolean logic if/then/else code to do this.
Any help would be appreciated Thank you... Pat
I know gdform.php is pretty limited. You may be better off installing and using a different form script.
I "think" you can still use a hidden field called "required" in gdform rather than neeeding a javascript validator, then a hidden "redirect" field if everything goes through correctly...
<input type="hidden" name="redirect" value="thank-you.html">
<input type="hidden" name="required" value="email, name, phone (other names of your form elements)">
That's a pretty typical process with most of the form to email scripts out there anyway.
Maybe someone here knows better about GoDaddy's form script though.
If it doesn't work, this site:
http://www.tectite.com/formmailpage.php
Offers a very well documented and simple to use form script that is much more robust than GoDaddy's gdform.php.
North America
Europe, Middle East and Africa
Asia Pacific