How to predefine a field and use it for calculation

  • Jdury1976
    Asked on December 14, 2016 at 6: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

     

  • omerorkun JotForm Data Scientist
    Replied on December 14, 2016 at 6: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:

    How to predefine a field and use it for calculation Image 1 Screenshot 40

    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:

    How to predefine a field and use it for calculation Image 2 Screenshot 51

    Here is a sample result:

    How to predefine a field and use it for calculation Image 3 Screenshot 62

    I hope this helps.

    Please contact us again if you need any further assistance.