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.

Change text of data-placeholder in Chosen Enhanced UI drop down field

  1. Brian
    Member

    How can I change the placeholder text in a drop down field that's using the Chosen enhanced user interface? I am using this for a country selection field. I'd like to change the default text "Select an Option" to "Choose a Country." My site is not yet live, so I can't post a URL. But what I am looking for is exactly what is shown on Harvest's GitHub page for Chosen, in the enhanced Standard Select field. See http://harvesthq.github.com/chosen/. Thanks!

    Posted 11 years ago on Monday January 21, 2013 | Permalink
  2. "Select an Option" will appear only if you do not have a placeholder as your first drop down option. Add a drop down option of "Choose a Country" as your first selection option, then be sure to check the box to "enable values" and clear out the value. That will ensure that the form can't be submitted with "Choose a Country" as their selection.

    Posted 11 years ago on Monday January 28, 2013 | Permalink
  3. Brian
    Member

    Thank you, Chris! The part I was missing was showing the values. This now works exactly as I wanted it to.

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  4. Thanks for the update Brian.

    Posted 11 years ago on Thursday February 7, 2013 | Permalink