We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18817 ☆ A M B ☆
    • 205 Posts
    Greetings,

    Quick how to question. I have a form with a drop down (location 1, location 2, location 3). Based on one of those selections, eForm should send the contents of the form to a specific email which is associated to the above locations.

    Is it possible to take the &to parameter out of the eform call and set up a hidden field for who to send the email to using jQuery to replace the email?
      Sal Baldovinos
      SEO & DIGITAL MARKETING

      ARIEL DIGITAL | Maximize Your Potential
      www.arieldigitalmarketing.com
      • 16278
      • 928 Posts
      Or perhaps eForm's own method would suit your purpose, using the &mailselector parameter?
      &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
        • 18817 ☆ A M B ☆
        • 205 Posts
        I'll give that a go! Thanks for the feedback.
          Sal Baldovinos
          SEO & DIGITAL MARKETING

          ARIEL DIGITAL | Maximize Your Potential
          www.arieldigitalmarketing.com