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 when, dropdown 'is not' empty value?

  1. Hi, I have a form with a 'Country' dropdown. It's required, but I don't want to pre-select a country (for political reasons) so I have 'Please Select' as the first option, and this option has no value. This seems to work to make the country required if the user leaves it at 'Please select'.

    great..
    But! I then want the rest of the address fields to be conditional based on this selection, so I have set 'Street Address', 'Town' and 'Postcode' to only show when 'Country' is NOT showing 'Please Select'. This doesn't work.

    If I switch off Country 'required' it works.
    If I add a value to the 'Please Select' option of 'Country' it works, but it always then passes the required check.

    Here: http://test.greekpowersummit.com/ (the top right sidebar form)

    Any ideas? Cheers!
    Ben

    Posted 13 years ago on Wednesday October 27, 2010 | Permalink
  2. Ben,
    It looks like you found a bug on Gravity Forms. The problem is that the conditional logic is making the comparison against the text and not the value of the selected item. I will be looking at this and will send you an update as soon as I have it (probably tomorrow). One solution users have used in the past is to leave the first drop down item blank. Not just the value, but the text as well.

    Posted 13 years ago on Wednesday October 27, 2010 | Permalink
  3. Ah ok, thanks. I'll see if the Client can live with it blank, if not I'll eagrely await any fix you can come up with :)

    Posted 13 years ago on Wednesday October 27, 2010 | Permalink
  4. Ben,
    I sent you an email with the fix for this issue. If anybody has the same problem, let me know and I will send you the fix as well.

    Posted 13 years ago on Thursday October 28, 2010 | Permalink
  5. Hi Alex, I've replied to your email, not quite fixed yet :/

    Posted 13 years ago on Thursday October 28, 2010 | Permalink