We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13438
    • 16 Posts
    Hi MODX community!

    I need some directions here:

    1. I do have a form which works fine but I want to have a Workgroup Drop Down Selection list in it, so when user selects for example:
    Marketing, the email form is send to an specific email address.I do have 3 options Marketing, Accounting, and IT.

    Is this doable?

      • 4310
      • 2,310 Posts
      From the eForm documentation (add to your snippet parameters) :
      &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.
      An example of the form field in your chunk :
       <select name="topic">
              <option value="1">Sales</option>
              <option value="2">Support</option>
              <option value="3">Billing</option>
          </select>