Send Email Notification to selected recipient from a contact form

  • jmartinwestern
    Asked on August 21, 2015 at 10:14 AM

    Good Morning,

     

    I would like to use our JotForm account to create a contact form on our staff directory.  My idea was to use a hidden field and insert the email address of our staff member to whom the email should go. However, I see now that I am unable to send email notifications to a field populated in the form.

     

    Is there anyway to accomplish this with JotForm?

     

    Thanks!

    Justin Martin

    jmartin@westerncusd12.org

    Technology Coordinator

  • Boris
    Replied on August 21, 2015 at 12:31 PM

    If I understand your requirement, Justin, you would like to conditionally send the email notification to a specific person based on what your users are selecting on a form - is this correct?

    Yes, this can be achieved quite easily. You can use Conditional Logic to Send an e-mail after submission.

    1. You will need to Set Up an Email Notification, with the Recipient Email address being irrelevant at this time - you can leave that at default.

    2. You'll need a field where your users will select their contact person - you can use a Drop Down field. Fill it out with names, or departments, that your users will be contacting.

    Send Email Notification to selected recipient from a contact form Image 1 Screenshot 40

    3. Go to Setup & Embed > Conditions > Send an e-mail after submission, and set up your conditions for the email notification.

    Send Email Notification to selected recipient from a contact form Image 2 Screenshot 51

    Create a rule for each of your options / email addresses.

    Send Email Notification to selected recipient from a contact form Image 3 Screenshot 62

    I hope this helps. Please let us know if you need further assistance or if you hit any snags along the way, and we will be happy to help.

  • jmartinwestern
    Replied on August 22, 2015 at 8:49 AM

    That doesn't help at all.  That requires setting up over 100 conditions.  if we use our own SMTP server can I set the recipient to one of our form fields?

    Or is there an API of some kind I can use to programmatically create the conditions. 

  • Boris
    Replied on August 22, 2015 at 11:03 AM

    I am sorry, it seems that I have misunderstood your initial request.

    I still don't quite understand the workflow you are after, but yes, you can always set the recipient to one of the form fields.

    It is best to use an actual Email field for this task, which can be found under Quick Tools. This field can be set as hidden, if desired.

    Send Email Notification to selected recipient from a contact form Image 1 Screenshot 60

    Send Email Notification to selected recipient from a contact form Image 2 Screenshot 71

    By having an Email field, you can select it easily in your Autoresponder emails.

    Send Email Notification to selected recipient from a contact form Image 3 Screenshot 82

    You can even use it in regular Email Notifications, but you'll have to find out the name of that email field. (How to find Field IDs and Names)

    In my example, my field is named {prepopulatedEmail}

    Send Email Notification to selected recipient from a contact form Image 4 Screenshot 93

    We can then simply set a recipient of our Email Notification to be the name of that field - {prepopulatedEmail}.

    Send Email Notification to selected recipient from a contact form Image 5 Screenshot 104

    Any of these two methods will work. If you need further assistance, please tell us a little more on your desired workflow - we will be happy to take a look into an appropriate solution.

    Please let us know how it goes.