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.

dropdown - can it be blank as standard ?

  1. Morten Knudsen
    Member

    I'm having a contest for which band is shown live (an event).... They have each submitted a video, but I guess having prefilled the option with the first choice gives an unfair advantage to that video.

    so how can I have a dropbox with
    Video 1
    Video 2
    Video 3
    Video 4
    Video 5

    and have the default entry beeing blank, but you *must* choose one of the video's...?

    Posted 14 years ago on Monday September 13, 2010 | Permalink
  2. If you are using Gravity Forms v1.4 then you would edit the drop down field, above the options of the drop down you would click the "show values" checkbox.

    Now you would make the first option say something like "Select a Video" and then leave it's value blank.

    Then for each of the other videos you would make sure you have a value filled in. You can duplicate the option name for the value. But they must have both.

    Now make the field required.

    What this will do is the first option has a label, but no value so it won't pass validation and will ask them to choose a video.

    Posted 14 years ago on Monday September 13, 2010 | Permalink
  3. Morten Knudsen
    Member

    That works exactly like the good Doctor Hancock prescribed !

    Thanks !

    Posted 14 years ago on Tuesday September 14, 2010 | Permalink
  4. alirtsman
    Member

    I just followed Carl's directions, but I couldn't get it to actually treat the dropdown as required. Has anyone else had any problems?

    Posted 14 years ago on Tuesday October 5, 2010 | Permalink
  5. Nobody else is reporting issues. Edit the drop down field, turn on the optional values and give the first option in your drop down a blank value. Make sure there is no blank spaces, etc. Just no value. Then set the field to required. If the first option is selected it should show a validation error as no value was selected.

    Posted 14 years ago on Wednesday October 6, 2010 | Permalink
  6. alirtsman
    Member

    Hey Carl -- thanks for getting back to me. I traced down the problem and it's that we're using some jQuery to force the labels inside the text fields. If we comment out the jQuery, your function works fine, but it seems like we can't do both. We're using a plugin called Labelify...do you have any suggestions? Thanks in advance!

    Posted 14 years ago on Wednesday October 6, 2010 | Permalink
  7. I'm not familiar with Labelify, can you post a link to an example form where the problem is occurring so I can take a look at it?

    Posted 14 years ago on Wednesday October 6, 2010 | Permalink
  8. alirtsman
    Member

    The site is actually hidden behind htaccess right now, so is it possible for me to email you directly with a url, username, and password? Thanks in advance!

    Posted 14 years ago on Wednesday October 6, 2010 | Permalink
  9. Yes, send us the information via our Contact Us form and reference this forum thread.

    Posted 14 years ago on Wednesday October 6, 2010 | Permalink