Title: [Plugin: Contact Form 7] preselect dropdown based on URL variable
Last modified: August 19, 2016

---

# [Plugin: Contact Form 7] preselect dropdown based on URL variable

 *  [markgt](https://wordpress.org/support/users/markgt/)
 * (@markgt)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-preselect-dropdown-based-on-url-variable/)
 * Is there any way to pre-select a dropdown (or pre-populate a textfield) from 
   a variable sent via the URL
 * eg: mysite/contact-form-page/?var=somevalue2
 * when the form page loads, “somevalue2” is already selected in the dropdown
 * can anybody help please??

The topic ‘[Plugin: Contact Form 7] preselect dropdown based on URL variable’ is
closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [markgt](https://wordpress.org/support/users/markgt/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-preselect-dropdown-based-on-url-variable/)
 * Status: not resolved