Thread Starter
kyudos
(@kyudos)
I got this working by making is:
[select Distributor1...
[Select Distributor2...
then emailing them both (because one will always be blank). It would be nice if a hidden select was completely ignored though.
-
This reply was modified 7 years, 2 months ago by
kyudos.
@kyudos I’m not sure if I understood your solution. Could you pls post the code?
I’ve the same problem with 27 recipients, should there be 27 [select …] fields?
thx a lot
Harry
Thread Starter
kyudos
(@kyudos)
@werkform It depends what you mean. A single select can have 27 entries in the combo box, each with a different email address. That’s just the standard behaviour. My problem was that I wanted the same entry in the list to go to a different address, based on another choice. So if the user picked Product A and “Australia” an email would be sent to Address A, if they pick Product B and “Australia”, email goes to Address B.
Essentially I needed two separate address lists, conditionally picked on the Product. I’m guessing you don’t have 27 separate lists of addresses, so just add them to the Select like this:
[select MyList include_blank "One|one@cone.com" "Two|two@two.com" ... "Twenty Seven|twoseven@twoseven.com"]
ok, my problem is different:
this sample does not work, I wan’t to select the recipient, but it seems the filed is empty and no mail will be send.
Any idea?
FORM:
======
[select* condfield first_as_label “– Bitte auswählen –”
“Condition 1”
“Condition 2”
]
[group condition-1-group]
[select* your-recipient
first_as_label “– Bitte auswählen –”
“OneOne|one@email.com”
“OneTwo|two@email.com”
]
[/group]
[group condition-2-group]
<label>Standort:*</label>[select* your-recipient
first_as_label “– Bitte auswählen –”
“TwoOne|three@email.com”
“TwoTwo|four@email.com”
]<br><br>
[/group]
CONDITION:
==========
show “condition-1-group” or “condition-2-group” if “condfield” equals “Condition 1” or “Condition 2”
E-MAIL:
=======
Mailto: [your-recipient]
Thread Starter
kyudos
(@kyudos)
I think you had the same problem as me – you can’t use the same field name for the two addresses. You need:
[select* your-recipient1…
[select* your-recipient2…
Then mailto your-recipient1 AND your-recipient2, making sure to include clear_on_hide so that one address is always blank.
Thx a lot, my trials with different recipients failed because the “clear_on_hide” missed, now everything works!
Thx again!
Harry