Getting dynamical default values for CF7 drop-down menu
-
Hi. I want the drop down menu of CF7 to have a default value, depending on the page the user is on.
Details:
I’m using the Select and Multi-Select Field for Contact Form 7 plugin (https://www.ads-software.com/plugins/select-multiselect-field-contact-form-7/) which creates drop down menus with a search field.Here’s an example of one of my form-tags:
[selct_multiselct* number placeholder:--- "1" "2" "3" "4" "5"]
I also have two pages, the WordPress excerpt (post_excerpt) for the page url.com/this-is-page-1 is “1” and the WordPress excerpt (post_excerpt) for the page url.com/this-is-page-2 is “2”.
Instead of “- – -” placeholder, I want the drop down menu default value to be set to “1” when page url.com/this-is-page-1 is loaded, based on the fact that the post_excerpt for that page is “1”. After all, your plugin has the ability to use data from the post_exceprt (https://cf7-datasource.dwbooster.com/documentation#post-data).
And when page 2 is loaded, the default value for the drop down menu should be “2” etc.Can your plugin help with that? What should my above form-tag look like? And perhaps some additional form-tags should be added to the form (recordset, recordset field link)?
Thank you!
- The topic ‘Getting dynamical default values for CF7 drop-down menu’ is closed to new replies.