How to predefine a field and use it for calculation

  • Profile Image
    Jdury1976
    Asked on December 14, 2016 at 06:39 AM

    Hi,

     

    I woul like to use a field with a predefined numer witch is selected from the selection box in order to make a calculation and use the predefined number in that calculation.

     

    Example:

    Kinderfeest selection is chosen for 5

    That number 5 is shown in another field so I can use it for a calculation.

     

    How can I do this?

     

    Greetings 

     

    Jean

     

  • Profile Image
    owen
    Answered on December 14, 2016 at 06:59 AM

    Hi Jean,

    I can see that you have already specified some calculation values in the dropdown field called "Kinderfeestje". But I guess you only want the number chosen to be copied into another field instead of the calculation values. In any case, I have created a test form for you which meets both of the conditions.

    First please see the form here: https://form.jotform.com/63461342097961. Feel free to clone this sample form of mine.

    For the first dropdown, when you select a number from it, its corresponding calculation value is copied into the first number field. 

    For the second dropdown though, I did not specify calculation values and only the number that is chosen through the dropdown is copied into the second number field. 

    Please see my conditions which applies this configuration:

    As you can see the conditions are pretty much the same. The only difference is the existence of calculation values in dropdown fields. 

    In order to use these fields for further calculations, please use "Form Calculation" widget. For instance, on the sample form that I addressed above, I multiplied the number fields like this:

    Here is a sample result:

    I hope this helps.

    Please contact us again if you need any further assistance.