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.

Preventing form submission

  1. I would like to know if Gravity Forms allows me to do the following:

    I have a form where the user have to enter its method of payment (Deposit or cash).

    If the user select Deposit, the plugin must ask for the TX number and date.

    But, if the user specify Cash as its method of payment, the plugin must call a PHP function of mine which casically made a sort of checksum on the other fields and see if they match...

    My function returns TRUE if the form must be submitted or false if not (the checksum didn't match).

    Is it possible?

    Posted 14 years ago on Thursday November 18, 2010 | Permalink
  2. It is possible. You will need to use the validation hook to validate the checksum and specify the error message if the checksum validation fails.

    Posted 14 years ago on Thursday November 18, 2010 | Permalink