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

  1. bruceo
    Member

    Is there a way to assign a dummy null value for the first entry so that the user must actually select a value. So the dropdown initially shows no value or "choose" as placeholder descriptive text then the dropdown reveals the selections to be chosen?

    Posted 14 years ago on Wednesday January 13, 2010 | Permalink
  2. There currently isn't a way to specify any null value or text for the first entry. We will adding some additional options for that soon. For now, you can leave the first choice blank and the the validation will work properly.

    Posted 14 years ago on Wednesday January 13, 2010 | Permalink
  3. That would be great to have this option in the future! Keep up the great work!

    Posted 14 years ago on Wednesday March 10, 2010 | Permalink
  4. Lee Hord
    Member

    You can have jQuery set the value of the first entry in your drop down.

    $('#input_id option:eq(0)').val('')

    This will set a null value for the first entry in the select. Just replace "input_id" with your drop down id.

    Posted 13 years ago on Thursday May 20, 2010 | Permalink
  5. Hedonfire1
    Member

    Where do I put that code to set the value of the first entry.

    Currently I have all of my drop down boxes empty and this does not look right on the form.

    It needs to have a "Please Select" or something similar to let the user know that there are options to choose from. By putting that in manually as the first option it makes it so that the field is no longer required.

    Please help.

    Thanks!

    Posted 13 years ago on Thursday December 30, 2010 | Permalink
  6. Hi Hedonfire! If your copy of Gravity Forms is up-to-date you can enable the use of values for your drop down and leave the value blank for the instructional option to ensure that a valid value is still required.

    Example field setup: http://grab.by/88mI
    Example error if valid option is not selected: http://grab.by/88n6

    Posted 13 years ago on Thursday December 30, 2010 | Permalink
  7. Hedonfire1
    Member

    Awesome! Thanks!

    Posted 13 years ago on Thursday December 30, 2010 | Permalink