Need to apply conditional logic inside the Calculation Widget

  • dj30189
    Asked on August 5, 2018 at 2:52 PM

    Form is https://www.jotform.com/build/82147828584165

    on page #2 of form; inside of the Calculation widget labeled "Buy-In Total"; I need to accomplish the following:

    for the calculation values that are assigned in the checkbox labeled "How many Buy-in Boaters are being registered?", I need the value (only one check box is allowed) added to a constant number; this constant depends on the checkbox selection.

    Logically I need the following for "Buy-In Total"

    IF (How many Buy-in Boaters are being registered) = 150 then

    Buy-In Total= (How many Buy-in Boaters are being registered) +100

    Elseif (How many Buy-in Boaters are being registered) = 300 then

    Buy-In Total= (How many Buy-in Boaters are being registered) +200

    Elseif (How many Buy-in Boaters are being registered) = 450 then

    Buy-In Total= (How many Buy-in Boaters are being registered) +300

    Elseif (How many Buy-in Boaters are being registered) = 600 then

    Buy-In Total= (How many Buy-in Boaters are being registered) +400

    End if

    I cannot seem to get this done correctly, can you assist plz.

  • Welvin Support Team Lead
    Replied on August 5, 2018 at 3:35 PM

    Do you need it something like this?

    Need to apply conditional logic inside the Calculation Widget Image 1 Screenshot 30

    If so, the conditional logic should be:

    If 1 is selected then Calculate 1 (150) + 100:

    Need to apply conditional logic inside the Calculation Widget Image 2 Screenshot 41

    Add the conditional logic for the other options.

    If 2 is selected then Calculate 2 (300) + 200

    If 3 is selected then Calculate 3 (450) + 300

    If 4 is selected then Calculate 4 (600) + 400

  • dj30189
    Replied on August 5, 2018 at 4:08 PM

    Welvin

    Thx !! let me see if I can that to work

  • dj30189
    Replied on August 5, 2018 at 4:22 PM

    Welvin

    That worked; I was trying to set these conditions inside the Calculation Widget for Buy-In total, using If statements. Instead of using the Conditions under "Settings" for the form. Thx for your help !!