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.

Drop Down - Require any choice BUT first

  1. I've got a yes/no drop down, but instead of showing either yes or no as the default, I've got "Select..." as the first choice to indicate they should select choice two or three (yes or no).

    The field is required. Is there a way for the form to reject the "Select..." choice, or should I try a different approach?

    Steve

    Posted 13 years ago on Thursday July 15, 2010 | Permalink
  2. Right now the only way to force a choice is to leave the first/default item blank. We do plan on updating this later on so it can work the way you described.

    If you're simply using it for yes/no values, a radio (multiple choice) field would work well too.

    Posted 13 years ago on Thursday July 15, 2010 | Permalink
  3. OK - thank you.

    Posted 13 years ago on Thursday July 15, 2010 | Permalink
  4. twistystraws
    Member

    Is leaving the first item blank still the only way to acheive this?

    Posted 11 years ago on Monday March 25, 2013 | Permalink
  5. David Peralty

    Yes, that is how it is done, though you could also add your own validation rule using gform_field_validation and say that if the response is x then return error "select anything but x".

    Posted 11 years ago on Monday March 25, 2013 | Permalink