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
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
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
It looks great!
I’ll try to test this the next time I’m working with a site that uses CF7.
New version includes these changes