Skip navigation
Currently Being Moderated

Form Behavior

Aug 27, 2012 11:56 AM

Tags: #forms #cs6 #submit_button #dreamweaver_cs6_upgrade

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

 
Replies
  • Currently Being Moderated
    Aug 27, 2012 12:16 PM   in reply to patruns98

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2012 5:48 AM   in reply to patruns98

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points