PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

field double entry verification (e.g. password)

  1. I want to have user enter a "password" and "confirm password" field (like email works) and ensure a 6 to 20 character entry. This is not for a Wordpress user account - data will be exported daily to set up in another system.

    It would be nice if I could use the "advanced field / email" field and it allowed the prompts to change but I don't see how.

    Or if in conditional logic, the right side of the compare could be "another field" instead of a "value" (like "password" "is not" "{confirm password}" - then I could have another field that was really an error message and only showed up if the two fields were not equal.

    Or can I embed custom code at time of "submit" (and where?)

    Thanks for any help for a "gravity forms" newbie - this is a cool product.

    Regards. John

    Posted 7 years ago on Wednesday October 17, 2012 | Permalink
  2. Please see this example I put online a while back:
    http://gravity.chrishajer.com/check-your-ticket-number/

    Here is an explanation:
    http://www.gravityhelp.com/forums/topic/match-fields#post-75964

    Does that work for you?

    Posted 7 years ago on Thursday October 18, 2012 | Permalink
  3. Thanks Chris. That's perfect. Except one small point as a GF newbie. I have programmed php before but not in a gravity form context. Can you tell me (or point me to a documentation link) as to where I put the <?php ..... } programming in your example? Thanks.

    Posted 7 years ago on Thursday October 18, 2012 | Permalink
  4. Figured it out. For anyone else that's looking, there is a "functions.php" under the "Appearances/Editor" on the Dashboard where you can paste in the function.

    Posted 7 years ago on Friday October 19, 2012 | Permalink