We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41824
    • 19 Posts
    Hi Everyone,

    I was just wondering if it was possible to choose where an e-mail goes based on a <select> field in the form. For example, if I have a dropdown with Sales, Support, and Customer Service, can I somehow use that to send the form data to [email protected], [email protected], or [email protected]? I’m thinking it might be possible using the eform "&eFormOnBeforeFormParse", or something like that, but I’m not sure how to get the result of a custom snippet back into the eform call (can you do this with template variables?). I’m sorry, I’m very new at this! Any thoughts? Thank you in advance.
      • 30223
      • 1,010 Posts
      No need for any scripting...

      Use the &mailselector parameter and set it to the dropdown field. (the values of the dropdown must be numeric)

      <select name="selectRecipient" >
          <option value="1">Sales</option>
          <option value="2">Support</option>
          <option value="3">Customer Service</option>
      </select>
      


      [!eForm? formid=`yourFormId` &mailSelector=`selectRecipient` &to=`[email protected],[email protected],[email protected]`!]


        • 41824
        • 19 Posts
        That’s freakin’ awesome! Thanks for your quick reply!