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.

Can you add conditional logic to the submit button?

  1. Hi, I was wondering if there is a way to add conditional logic to the summit button. I have a drop down list with two entries one that says paypal and the other that say check. The form goes to paypal but I was wondering if you can make the form not go to paypal if you pick check and just send a confirmation email with the address to send the check to.

    Thanks

    Posted 13 years ago on Saturday August 27, 2011 | Permalink
  2. There are several ways of handling this. The PayPal add-on (if you're using it) has a checkbox where you can configure a condition. If the condition is true, then send the transaction to PayPal. If it's not true, then don't send to PayPal.

    Conditional logic is available for the submit button on the form as well, but it might not do exactly what you want. It will make the submit button unavailable until some condition is true. Until that's true though, you would not be able to submit the form and would not be able to send the email.

    If you're using the PayPal add-on, you want the "PayPal condition".

    Related:
    http://www.gravityhelp.com/forums/topic/paypal-conditonal#post-20095

    Posted 13 years ago on Saturday August 27, 2011 | Permalink
  3. Is it possible to have a single checkbox field which acts as the condition for the submit button? I have created a single checkbox labelled 'I agree' but it is not showing up as an option for the submit conditional logic, however the radio and drop down fields are showing up as options for the submit conditional logic.

    Note: this is not a PayPal form and I am using 1.6 RC4, so perhaps this is a bug?

    Posted 13 years ago on Friday October 7, 2011 | Permalink
  4. You may have to update/save your form before all the fields show up in the conditional logic drop down. So if you have a checkbox field and it doesn't show up in the drop down to select the field for conditional logic, save/update your form and then try again.

    Posted 13 years ago on Friday October 7, 2011 | Permalink