How can I automatically fill a field based on a option chosen from a drop down?

  • WWFISales
    Asked on November 29, 2018 at 11:41 AM

    Wondering if there is a way to have a field pre-populated from another field input.

    For example:  If I choose my name in a drop down field

    Yvonne Williams

    Is there a way to then automatically populate the email field with my email address 

    ywilliams@wwfi.com without having to enter it.

    I realize that the data might have to be pre-populated but we are trying to streamline this form for the users.

    Appreciate your reply.

    Yvonne

  • Girish JotForm Support
    Replied on November 29, 2018 at 12:22 PM

    While using drop down fields to populate name, you can also assign calculation values for each field. In your case, you can use email address as the calculation value against each name. 

    1. Select the properties option of the drop down field, go to the options tab and enter the names of the users as shown below.

    2. Drag and drop the email field into the form.

    1543510972Screenshot 3 Screenshot 10

    3. Turn on the Calculation value option. Add the emails into the calculation value section of the Options tab.

    1543511957Screenshot 5 Screenshot 21

    4. Create a condition as follows and Save.

    1543511153Screenshot 4 Screenshot 32

    I have checked this and found to be working fine.

    1543511335challenge4 Screenshot 43

    You can test this link - https://form.jotform.me/83324332331446

    Do try this method and let us know if it is working fine from your end.

  • John_Benson
    Replied on November 29, 2018 at 2:13 PM

    @gerardw Thank you for help and providing a guide. 

    Hi Yvonne, 

    Our form builder can use conditional logic. The guide provided above me is the correct way to populate a field based on the user's answer.

    You can also check the complete guide on this link: https://www.jotform.com/help/268-How-to-Insert-Text-or-Calculation-into-a-Field-Using-Conditional-Logic