Default value in dynamically generated select field?
-
I have a CF7 form with a select field for the recipient. With “default: get” i can select a line in the dropdown from a parameter in the calling URL.
So far so good.
But now I would like to generate the drop-down list dynamically (via the ‘wpcf7_form_tag’ hook in functions.php). This also works. But no longer the default choice from the calling URL.
What can I do?
(And by the way: If the select field is a recipient field, at design time it must contain an valid address, else a “illegal syntax” message is trown.)
[select* empfaenger include_blank default:get
“xyz|[email protected]”]
The topic ‘Default value in dynamically generated select field?’ is closed to new replies.