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 Not Working Correctly

  1. gmcalp
    Member

    I have a form I am creating for a Symposium registration page and I am trying to use conditional logic to show/hide sections based on the number of days they would like to attend.

    What is happening is the field that I am trying to trigger off of is switching on it's own. An example:

    Show this field if Any of the following match:

    I would like to attend... [this is the field name] is Friday [the other choices are Saturday and Both Days].

    I have it set to show on Any of the following: Friday or Both

    When I save the form, the Friday selection in the conditional logic has automatically switched to Saturday so the form breaks.

    I am using GF 1.4.beta4

    I can't post a link to the form as I haven't published it yet due to this bug/error

    Posted 14 years ago on Thursday August 26, 2010 | Permalink
  2. gmcalp
    Member

    Well, I may have figured out the problem. I had 'Enable Values' selected and the Friday and Saturday choices had the same value (I was passing that value to PayPal for payment - single day prices). Obviously the form was getting stuck on that and it like the same value for two different choices.

    I really would like to be able to use conditional logic for the fields that deal with day/class choices to show/hide depending on the selections, and I need to send payment values to PayPal for registration payment.

    Is there any way I can set the values and have it work properly?

    Posted 14 years ago on Friday August 27, 2010 | Permalink
  3. gmcalp
    Member

    One more update:

    I found a workaround for the conditional logic piece:

    I set the Friday value to 60 and the Saturday value to 60.00 and all is working as it should... except for one thing, now the form isn't submitting and it says:

    "There was a problem with your submission.
    Errors have been highlighted below "

    but there is nothing highlighted.

    Any Ideas?

    Posted 14 years ago on Friday August 27, 2010 | Permalink
  4. gmcalp
    Member

    OK, last update on this... (sorry it seems I am talking to myself here)

    I figured out the form submission problem. I had all of the fields that were using conditional logic to either show or hide them set to 'Required' so the fields that were hidden weren't getting filled out. So, obviously, Gravity Forms would throw a form submission error as not all the required fields were being selected/filled out.

    Posted 14 years ago on Friday August 27, 2010 | Permalink
  5. If a field hidden by conditional logic is marked as "required" it does not fail validation if it is still hidden (and therefore empty) when the form submits. So, I think you had something else going on there.

    Posted 14 years ago on Friday August 27, 2010 | Permalink
  6. gmcalp
    Member

    I dunno about that. As soon as I unchecked 'required' from all 3 fields, it passed without any errors.

    Posted 14 years ago on Friday August 27, 2010 | Permalink
  7. We will look into it. Required fields shouldn't trigger validation, but as this is a BETA there may have been something introduced that is causing it to happen.

    Posted 14 years ago on Saturday August 28, 2010 | Permalink