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 update value in one field based on a dropdown selection?

    Asked by paulsapio on March 24, 2015 at 04:32 AM

    If drop down box 1 = 23 can text box 2 = X 

     

    Kind of like the conditions for emails, but on the form it self. So if a user selects X from a drop down box the next box is auto populated with an answer of my choice? 

    populated field conditions update field value conditions
  • Profile Image

    Answered by Ben on March 24, 2015 at 10:17 AM

    Yes, that is possible.

    You can do that in two ways:

    1st - using Form Calculation

    If your field that should be updated is only used to show something based on the selection in the Dropdown field, I would suggest using Form Calculation widget. It will capture the value in the dropdown and show it within itself.

    Useful guides:

    How to Assign Calculation Value

    How to perform calculation in the form?

    2nd - using conditions

    Conditions can be used for lots of things and the one you would need here is the Update Form Field Value option. It will allow you to check the options selected in the dropdown and then insert a value into some field

    Useful Guides:

    Smart Forms Using Conditional Logic

    How to Insert Text or Mathematical Calculation into a field using a Condition

    Of course we are here, so just let us know if you have any questions along the way and we would be happy to assist.