How can I generate text & numerical drop down output from the same user selection & display the outputs in separate calculation fields?

  • Andrew1294
    Asked on February 2, 2015 at 12:27 PM

    In other words, I would like to have my users to choose 1 answer from a drop down and have 2 outputs each sent to a different calculation field.

     

    Example:

     

    Drop down choices:

    1 Bedroom                                                                     40

    2 Bedrooms        --> Output text "2 Bedroom" to            80        --> Output number "80" to

    3 bedrooms                Calculation field A                       100             Calculation field B 

    4 bedrooms                                                                   120

     

    For the above example, selecting "2 Bedrooms" outputs (1) the text "2 Bedrooms" to one calculation field & (2) the number "80" to another calculation field.

  • Welvin Support Team Lead
    Replied on February 2, 2015 at 1:17 PM

    Hi,

    For adding the a text, you can do it by adding an 'update a field value" conditional logic:

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Caculation-into-a-field-using-a-Condition

    When adding the update to a field value logic, make sure to check the "Add field to equation as text by default." option first before adding the value in the equation area:

    How can I generate text & numerical drop down output from the same user selection & display the outputs in separate calculation fields? Image 1 Screenshot 30 

     

    For the numeric output, you can directly use the calculation widget. You can add a calculation values for each option in the dropdown field:

    Properties > Show Properties > Calculation Values:

    How can I generate text & numerical drop down output from the same user selection & display the outputs in separate calculation fields? Image 2 Screenshot 41

     

    Example: http://www.jotformpro.com/form/50325100358948.

    Let us know if you need further assistance.

    Thank you!