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.

Conditional Logic detailed example

  1. grayro
    Member

    Hi there,

    I've just purchased Gravity Forms and can't seem to find a good documentation or detailed example on Conditional Logic. Please point me to the right direction.

    Thank you.

    Posted 13 years ago on Sunday November 13, 2011 | Permalink
  2. Here is a brief overview of conditional logic:

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

    You can use it a couple of ways. For example, let's say you had a Question that offered yes and no options. Then you had two fields below the question that are enabled with conditional logic and one shows only show if selected yes and the other field shows if selected no. On the two fields in the Advanced tab on the field, you would enable conditional logic and apply the rule.

    You can also do this with the submit button itself in the Form Settings tab. Let's say those two yes and no options were an agreement of some kind, if the user selects yes then the submit button shows. Let me know if you need any more guidance.

    Posted 13 years ago on Sunday November 13, 2011 | Permalink
  3. grayro
    Member

    Hi Rob,

    Thanks for your prompt reply first of all. Anyway I've previously looked the brief overview and just couldn't get the initial steps going :-(

    I want to have a logical hierarchical structure of a geographic location:
    Region -> Country -> State/Prov -> City

    If Region is North America, then US & Canada are the options
    If Country is US, States are the option

    Also, how do you integrate this in WooThemes Listings? I'm thinking of using this to replace "Upload a Listing" template by Listings!

    Thank you!

    Posted 13 years ago on Sunday November 13, 2011 | Permalink
  4. SR
    Member

    Hello! I'm new to Gravity Forms. I love the ease of use and setup, but am also finding good documentation for more tricky things hard to find.

    My question about Conditional Logic is similar, but about the Submit button itself, based on choices made on three radio buttons.
    These are the two scenarios, regarding form action after the user chooses payment options:
    1. if user chooses the Bank Transfer or Check Payment Radio button - they get a confirmation page on form submission (that shows bank details and so on)
    2. But If they choose 'Online Payment' radio button, then when they click Submit, they are sent to the third party payment gateway...

    I cant seem to find any controls in the 'Edit Form Settings' to enable this kind of choice - the choice seems to be only 'Show or hide this button' based on previous choice. This is confusing, because if the Submit button is hidden, whats the point?

    I mean, if conditional logic is used, there should be a way to have TWO submit buttons, only one of which shows up based on choices made, right?

    ------------ update --------------
    I realize one work-around is to have two forms: One for offline check payment, and one for Online.

    In which case, my question is: is there documentation for php functions, or other code, on how to connect the online payment form to a third party payment gateway - apart from functions.php of my theme, I dont know which files to edit, or where to put the code,

    Please help clarify this....thanks a bunch!

    Posted 13 years ago on Friday November 18, 2011 | Permalink
  5. The confirmation currently does not support conditional logic. It's not a feature of the confirmation settings.

    Conditional logic can currently only be applied to the submit button, next/previous buttons on multi-page forms and individual fields to show/hide based on a prior selection.

    Integrating Gravity Forms with a 3rd party payment gateway isn't a basic customization. It's definitely a more advanced customization. It can't be done without custom code. Really it needs to be done by writing a custom plugin.

    We have a PayPal Add-On right now that integrates Gravity Forms with PayPal. We also have an Authorize.Net Add-On which is a true payment gateway (unlike PayPal) that is currently in alpha testing with users who have asked to be involved in the product testing.

    What payment gateway are you trying to integrate with?

    Posted 13 years ago on Friday November 18, 2011 | Permalink
  6. timburch
    Member

    Is there any plan to include other payment gateways other than Authorize.net and PayPay? We are in Australia and use eWay. They are exceptional with developer support and eager to integrate to other platforms. So any plans??

    Posted 13 years ago on Tuesday December 20, 2011 | Permalink
  7. Tim, please start a new topic in the feature requests forum. It's unrelated to how this topic started and deserves an individual response. Thank you.

    Posted 13 years ago on Tuesday December 20, 2011 | Permalink

This topic has been resolved and has been closed to new replies.