• Resolved kyudos

    (@kyudos)


    I have something like this:

    
     <div class="columns one-half offset-one">
          [group group-a clear_on_hide]
          <div class="field"><label>Distributor Region<em>*</em></label>
    [select Distributor include_blank "New Zealand|[email protected]" "Australia|[email protected]"]
            <p class="info-tip">Enter your world region</p>
          </div>[/group] [group group-b clear_on_hide]
          <div class="field"><label>Distributor Region<em>*</em></label>
    [select Distributor include_blank "New Zealand|[email protected]" "Australia|[email protected]"]
            <p class="info-tip">Enter your world region</p>
          </div>[/group]</div>
      </div>
    
    

    I’m send my email to [Distributor], but it always goes to [email protected], when I select Australia, regardless of which condition I picked. How can I make the other list active.

    • This topic was modified 5 years, 8 months ago by kyudos.
Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 5 years, 8 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|[email protected]" "Two|[email protected]" ... "Twenty Seven|[email protected]"]
    

    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|[email protected]
    “OneTwo|[email protected]
    ]
    [/group]
    [group condition-2-group]
    <label>Standort:*</label>[select* your-recipient
    first_as_label “– Bitte ausw?hlen –”
    “TwoOne|[email protected]
    “TwoTwo|[email protected]
    ]<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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Different e-mail recipients, based on condition.’ is closed to new replies.