Title: Manually set default selected
Last modified: August 30, 2016

---

# Manually set default selected

 *  Resolved [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/manually-set-default-selected/)
 * Is there a way to set the current selected item in the select dropdown from within
   the filter?
 * Background: I have the same form on multiple pages, and I have a dropdown showing
   all pages but I want the current page to be the default selected.
 * [https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/](https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/)

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

 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/manually-set-default-selected/#post-6630978)
 * Currently there isn’t a way to set the default value. This would be a good addition,
   but I need to figure out how I can allow setting a default value as well as still
   be backward compatible.
 * I’ve put it on my to do list [https://github.com/Hube2/contact-form-7-dynamic-select-extension/issues](https://github.com/Hube2/contact-form-7-dynamic-select-extension/issues)
 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/manually-set-default-selected/#post-6631115)
 * I have added a way to specify the default values of a select. For anyone that’s
   interested in this, please download and install the latest version from GitHub
   and test it out, let me know if this works for you.
 * [https://github.com/Hube2/contact-form-7-dynamic-select-extension](https://github.com/Hube2/contact-form-7-dynamic-select-extension)
 * How it works. When returning the values to use for the select field from your
   filter return add an index to the array of `default` with either a single value
   or an array of values to be selected by default. For more information on adding
   this index see the example filter in the example filter file that’s included 
   with the plugin.
 * If this satisfies the need to be able to set defaults I will update the plugin
   here with the changes.
 * ~JH
 *  Thread Starter [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/manually-set-default-selected/#post-6631116)
 * It looks great!
 * I’ll try to test this the next time I’m working with a site that uses CF7.
 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/manually-set-default-selected/#post-6631118)
 * New version includes these changes

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

The topic ‘Manually set default selected’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-dynamic-select-extension.
   svg)
 * [Dynamic Select for Contact Form 7](https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [John Huebner](https://wordpress.org/support/users/hube2/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/manually-set-default-selected/#post-6631118)
 * Status: resolved