How to select an email by selecting name values in an option field/widget?

  • htoffice
    Asked on January 16, 2018 at 12:27 PM

    Hi, Is there a way to have an option(widget?) to click from a list of names, but the output to be their email addresses?  Asking as I want customers to choose from a list of parent names, but it would be easier and simpler if they see their name and not the email (as the email isn't always clear who the recipient will be). 


    Thanks, Rena at HTOffice

  • liyam
    Replied on January 16, 2018 at 1:20 PM

    Unfortunately, there is no possibility to set this in an option, there is also no widget available that can make this happen. But you can run a condition where each email shall be used based on a specific selection of a name. 

    Can you tell us how exactly you wish to use the email address so we can provide you more explicit details on how to make your form?


  • htoffice
    Replied on January 16, 2018 at 2:43 PM

    Hi - I don't want just one email, but I would like the possibility of choosing many names from a list, but for us to see on the report would be email addresses associated with each individual name chosen (could be 30+ names).  

    Probably too complicated?

  • Mike_G JotForm Support
    Replied on January 16, 2018 at 3:41 PM

    Thank you for clarifying your concern, we appreciate it.

    I believe this is possible by having the email addresses as calculation values of the parent names.

    This guide explains how you can add calculation values to the options of radio button fields, checkbox fields, and/or drop-down fields — How-to-Assign-Calculation-Value

    Let's say here are the options in your Parent Name drop-down field

    1516134228t15 21 04 Screenshot 10

    You can add the calculation value of each option as shown in the screenshot below.

    1516134328t15 23 43 Screenshot 21

    After that, add another field that will have the email address of the selected parent name. This field can be set as hidden.

    1516134596t15 29 07 Screenshot 32

    The calculation value of the parent name (drop-down field option) can be passed to that field conditionally.

    1516134791t15 31 17 Screenshot 43

    Then, you can now use that field as recipient of the email autoresponder in your form — Setting-Up-an-Autoresponder-Email

    1516134994t15 34 40 Screenshot 54

    The screenshot below shows how the calculation value and the condition works. (I intentionally did not hide the field only for testing purposes)

    1516135302t15 40 Screenshot 65

    I hope this helps. If you have other questions or concerns, please feel free to contact us again anytime.