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

    How to place a value in one field based on the value selected from a drop down in another field

    Asked by runningj on February 01, 2017 at 11:33 AM

    I have a drop down field that contains 49 values. The values are text. I want a hidden field to display a five digit number based on the value selected from the 49 options in the drop down field.


    I'd prefer not to create 49 different conditional logic options to have the 2nd value displayed. Is there a way I can do this?




  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 01, 2017 at 11:45 AM

    Hello runningj,

    You do not have to add 49 conditions to check the selected option of dropdown field and populate hidden field. You can set "Calculation Values" of each dropdown options. You may like to take a look at the following guide on how to assign calculation values:  https://www.jotform.com/help/301-How-to-Assign-Calculation-Value

    Here are the steps you should follow:

    #1. Add calculation values for each dropdown options.

    #2. Add one condition in your form to check if the dropdown field is selected and insert the value in hidden form field.

    #3. Alternatively, you can add "Form Calculation" widget and directly read the value of dropdown field. Please check the screenshot below:


    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!