What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Drop down to populate email in field

    Asked by waynerigley 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 

    email name Selection select
  • Profile Image

    Answered by Ben on November 21, 2014 at 02: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.

    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.

    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.

    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.

    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