Hello!
I want to achieve the following: A form is called with an additional value in the url (?name=XXX). This value is used to select a email-address, where the form data is then sent to.
1) Field
I have a select field with key|value pairs (email|name):
userA@example.com|UserA
userB@example.com|UserB
userC@example.com|UserC
The default value of that field is %get[name].
2) Conditional e-mail recipients
In the webform configuration I have activated Conditional e-mail recipients for that field.
3) URL
If the form ist called with http://mydomain.org/mywebform?name=UserA then no option of the select field from #1 ist selected and of course no email is sent.
It seems that using a default value and key|value pairs in a select list does not work.
For example:
Url key "UserA" and select list option "UserA" matches.
Url key "UserA" and select list option "userA@example.com|UserA" does not match.
Url key "userA@example.com|UserA" and select list option "userA@example.com|UserA" does not match.
Any idea how to get this working?
Comments
Comment #1
quicksketchYou have to use the "key" part in the URL, not the value. So your URL would have to be: http://mydomain.org/mywebform?name=UserA@example.com
Comment #2
quicksketch