Title: display string on dropdown button
Last modified: July 25, 2017

---

# display string on dropdown button

 *  Resolved [Philipp](https://wordpress.org/support/users/vonschulthess/)
 * (@vonschulthess)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/display-string-on-dropdown-button/)
 * Hi,
 * I have created the form to add an new ad. Please see here: [https://www.soldoona.com/adverts/add/](https://www.soldoona.com/adverts/add/)
 * There is a dropdown field with the name “Geburtsland”. How can I display a string
   on the dropdown button so that some copy will be shown by default.
 * The checkbox field below with the name “Kunst-Gattung(en)” has this.
 * Thank you for your support
    Regards Philipp

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/display-string-on-dropdown-button/#post-9352405)
 * I assume you are customizing the form using Custom Fields add-on, if so then 
   edit the “Geburtsland” field from Custom Fields editor, check the “List starts
   with empty option” checkbox and below enter a string you want to display for 
   the default empty option.
 *  Thread Starter [Philipp](https://wordpress.org/support/users/vonschulthess/)
 * (@vonschulthess)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/display-string-on-dropdown-button/#post-9382796)
 * for this field, it does not have the option to check the “list starts with empty
   option” box. please see this print screen [http://imgur.com/a/0RF8k](http://imgur.com/a/0RF8k)
   
   What do I need to do?
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/display-string-on-dropdown-button/#post-9386891)
 * It seems you are converting the text field into dropdown (its dropdown in the
   frontend but text box in the editor) using Forms API, you will need to find code
   that does this (it will most likely be in your theme functions.php file and will
   be using the advert_form_load filter) and modify the field to include an “empty”
   option.
 * Once you will find the code you can paste it here i will let you know how to 
   change it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘display string on dropdown button’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/display-string-on-dropdown-button/#post-9386891)
 * Status: resolved