We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28353
    • 28 Posts
    Hey Guys,

    I created a form using eform and i was wondering how i could send my form to the email selected in the drop down list? ex.. if i select [email protected] it will be sent there or if i select [email protected] then it will be sent there.

    thanks,
      • 7188
      • 26 Posts
      Hi stalwil, can you post your current eForm snippt call?
        • 16278
        • 928 Posts
        Is this what you need? (From the documentation included with the snippet - assets/snippets/eform/docs/eform.htm)

        &mailselector (Optional)
        Sets the name of the form field to use as a selector to select a single email from the comma (,) delimited emails assigned the &toparameter. This selector field will act like a numeric index to select an email. It will start at 1 for the first email and ends at N for the last email in the list.

        For example: &to =`[email protected],[email protected],[email protected]` &mailselector=`topic`

        On the web form the topic fields is actually a dropdown menu. when the user selects a topic from the list the value 1,2 or 3 will be sent to eForm which will then be used to select one of the three emails assigned to the &toparameter. This email address will be the address used to send the email to.

        ;) KP
          • 28353
          • 28 Posts
          Sorry for the late reply but yes this is what i was looking for. I’ll try it out to see if it works!

          Thanks,
          stalwil