Drop down to populate email in field

  • waynerigley
    Asked on November 21, 2014 at 12:11 PM

    is there a way to select a drop down "name" that i have, upon that selection auto pre-populate a email field in the form ? 

     

    select jason

     

    email fied- jason@myemail.com 

  • Ben
    Replied on November 21, 2014 at 2:10 PM

    Hi,

    Yes. You can do that by setting up the calculation values option in the dropdown.

    Right click on the widget and then click on Show Properties option.

    Drop down to populate email in field Image 1 Screenshot 50

    Click on the Calculation values field as shown on the screenshot and first add an empty line (you can add a space in it), then add the emails that you want to have shown.

    Drop down to populate email in field Image 2 Screenshot 61

    Once this is added, scroll down and click on Finish button.

    This will then pass the values to any field that is looking for them.

    Now to make some field capture this (look for these details) we would need to use conditions as well.

    Click on Conditions button and then select Update a Form Field value option and click on next.

    Drop down to populate email in field Image 3 Screenshot 72

    Once this is done, just set the conditions to match what you want to accomplish. In our case it is to transfer the email from one field to another.

    Drop down to populate email in field Image 4 Screenshot 83

    You can see it in action here: http://form.jotformpro.com/form/43245315147955

    If you would like to clone it to your account, please follow the instructions in this guide: How to Clone an Existing Form from a URL

    Now, you could also do this by using conditions to check if a certain name was selected (we are checking only if selection was made) and then insert the email instead of the field calculation value. The downside of that approach would be that you would need to insert condition for each email that you add.

    Do let us know if you have any further questions.

    Best Regards,
    Ben