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.

How to add a conditional check

  1. Hi,

    I would like to add a custom robot question which is used on other websites such as:

    What is 4 + 6: now I can get the user to add the answer which is 10 however if they enter an incorrect answer I need it to not submit.

    How can this be achieved?

    Thanks

    Posted 12 years ago on Wednesday April 11, 2012 | Permalink
  2. You should be able to use the gform_validation hook, the example shown is in the ballpark of what you'd need even:

    http://www.gravityhelp.com/documentation/page/Gform_validation

    Posted 12 years ago on Wednesday April 11, 2012 | Permalink
  3. how do I use this? is this done through the form or somewhere else?

    Posted 12 years ago on Wednesday April 11, 2012 | Permalink
  4. Hooks/Filters will be placed into your theme's functions.php file.

    Posted 12 years ago on Wednesday April 11, 2012 | Permalink