Title: default:get doesn&#8217;t work for select fields
Last modified: January 7, 2019

---

# default:get doesn’t work for select fields

 *  Resolved [Lech Dutkiewicz](https://wordpress.org/support/users/lech-dutkiewicz/)
 * (@lech-dutkiewicz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/defaultget-doesnt-work-for-select-fields/)
 * I’m trying to implement a form that gets the default value for a select field
   from URL parameter. While it works well with a regular select field, when I put
   it in [md-select] shortcode, it doesn’t work at all.
 * Am I doing something wrong or this functionality just isn’t implemented?

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

 *  Plugin Contributor [Addons for Contact Form 7](https://wordpress.org/support/users/contactform7addons/)
 * (@contactform7addons)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/defaultget-doesnt-work-for-select-fields/#post-11061948)
 * Hi [@lech-dutkiewicz](https://wordpress.org/support/users/lech-dutkiewicz/),
 * Thanks for letting me know about this. I’ll take a look and try to get it working
   for you, then release an update. I will let you know when it’s done.
 * Thanks,
    Angus
 *  Plugin Contributor [Addons for Contact Form 7](https://wordpress.org/support/users/contactform7addons/)
 * (@contactform7addons)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/defaultget-doesnt-work-for-select-fields/#post-11062349)
 * Hi [@lech-dutkiewicz](https://wordpress.org/support/users/lech-dutkiewicz/),
 * Are you sure your select field works when you remove the `[md-select]` shortcode
   from around it? I’ve just tried and for me it doesn’t work either way.
 * The CF7 documentation on `default:get` also doesn’t mention that it works on 
   select fields…
 * Thanks,
    Angus
 *  Thread Starter [Lech Dutkiewicz](https://wordpress.org/support/users/lech-dutkiewicz/)
 * (@lech-dutkiewicz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/defaultget-doesnt-work-for-select-fields/#post-11063097)
 * Hi, thanks for your reply.
 * I’m sure it works without the shortcode. I’ll pass a link to you, but please 
   visit first [http://www.project-travel.pl/?internal](http://www.project-travel.pl/?internal),
   so your visit won’t be recorded with Google Analytics. This link creates a cookie,
   so I can filter out your future visits in Analytics.
 * The link with CF7 form I’m giving you is to one of my conversion pages and I 
   don’t want to mess up the statistics.
 * Here is a link with ?camp=Oxford passed and the first form field is native CF7
   select with `default:get`.
 * [http://www.project-travel.pl/obozy-jezykowe-dla-dzieci-2019/ferie/rejestracja/?camp=Oxford](http://www.project-travel.pl/obozy-jezykowe-dla-dzieci-2019/ferie/rejestracja/?camp=Oxford)
 *  Plugin Author [GusRuss89](https://wordpress.org/support/users/gusruss89/)
 * (@gusruss89)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/defaultget-doesnt-work-for-select-fields/#post-11063144)
 * Hmm that’s strange then, I will have to figure out why it’s not working at all
   for me, then make sure it also works with my plugin.
 * Thanks for letting me know. I will take another look.
 *  Plugin Contributor [Addons for Contact Form 7](https://wordpress.org/support/users/contactform7addons/)
 * (@contactform7addons)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/defaultget-doesnt-work-for-select-fields/#post-11063292)
 * Ok, I figured out the reason it didn’t work for me was because `default:get` 
   needs to go _before_ the dropdown options.
 * I’m now releasing v2.2.2 which should fix this issue.
 * Thanks for your help on this.
    Angus

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

The topic ‘default:get doesn’t work for select fields’ is closed to new replies.

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

## Tags

 * [select](https://wordpress.org/support/topic-tag/select/)

 * 5 replies
 * 3 participants
 * Last reply from: [Addons for Contact Form 7](https://wordpress.org/support/users/contactform7addons/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/defaultget-doesnt-work-for-select-fields/#post-11063292)
 * Status: resolved