Title: Select drop down based on query string
Last modified: January 4, 2017

---

# Select drop down based on query string

 *  Resolved [cpaprotna](https://wordpress.org/support/users/cpaprotna/)
 * (@cpaprotna)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/select-drop-down-based-on-query-string/)
 * Is there a way to have a form select a specific value in a drop down based on
   a query string?
 * I have the following select item in my form:
    [select* service_type include_blank“
   Manual J – Residential Calculations” “Manual N – Light Commercial” “Manual S –
   Systems Design” “Manual T – Air Distribution Basics” “Manual D – Residential 
   Duct Design”]
 * And depending on the page that links to the form,I want to have the appropriate
   item selected. Is this possible? I tried using “/online-service-request/?service_type
   =Manual J – Residential Calculations” But it did not do anything.

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

 *  [Luke Cavanagh](https://wordpress.org/support/users/lukecavanagh/)
 * (@lukecavanagh)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/select-drop-down-based-on-query-string/#post-8619607)
 * [@cpaprotna](https://wordpress.org/support/users/cpaprotna/)
 * So prepopulate a field from query string?
 * Have you looked at?
 * [https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/)
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/select-drop-down-based-on-query-string/#post-8620160)
 * See [Getting Default Values from the Context](http://contactform7.com/getting-default-values-from-the-context/)
 * Add `default:get` option to the select* tag and replace a space with `+` in the
   URL like `?service_type=Manual+J+–+Residential+Calculations`.
 *  Thread Starter [cpaprotna](https://wordpress.org/support/users/cpaprotna/)
 * (@cpaprotna)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/select-drop-down-based-on-query-string/#post-8623265)
 * Thank you, this worked like a charm! Please update your documentation to include
   this functionality.

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

The topic ‘Select drop down based on query string’ 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/)

## Tags

 * [prepopulate](https://wordpress.org/support/topic-tag/prepopulate/)
 * [Query String](https://wordpress.org/support/topic-tag/query-string/)

 * 3 replies
 * 3 participants
 * Last reply from: [cpaprotna](https://wordpress.org/support/users/cpaprotna/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/select-drop-down-based-on-query-string/#post-8623265)
 * Status: resolved