Changing the values on an input table after a given date

  • dist1070foundation
    Asked on November 18, 2018 at 3:04 PM

    Hi. I am working on a registration form and after a given registration date i.e. 31Mar2019 I need to increase the delegate cost by £4 to £38.


    Is it possible to change the option values using logic. from:-

    34,10,23,35

    to

    38,10,23,35

    ?

    Thanks

    Irvin Metcalf

    Jotform Thread 1646781 Screenshot
  • Mike_G JotForm Support
    Replied on November 18, 2018 at 6:26 PM

    What you are trying to accomplish is possible with the help of conditions.

    I have checked how your form is set up and I understand that you are inserting the calculation value of the Delegate column of the Event Selection into the "DelReg" form calculation widget to get an average.

    To get a different value based on the current date, you first need to add a Date Field in your form and set its "Default Date" to "Current".

    1542577302t16 39 01 Screenshot 10

    Also, please set the calculation value to 34,10,23,35 as the base value.

    1542582956t18 15 22 Screenshot 21

    After that, add a Form Calculation widget to get the Sub-total (base) for the delegates selected.

    1542581350t17 46 54 Screenshot 32

    You also need to include 2 additional Number fields in your form.

    1542581641t17 53 17 Screenshot 43

    The value of the (1) Sub-total(after a specific date) Number field is based on the value in the Sub-total (base) and you will create these 3 conditions in your form.

    If Sub-total (base) value is equal to 34, add 4 to it and put the total in the Sub-total(after a specific date) Number field.

    If Sub-total (base) value is equal to 68, add 8 to it and put the total in the Sub-total(after a specific date) Number field.

    If Sub-total (base) value is equal to 102add a 12 to it and put the total in the Sub-total(after a specific date) Number field.

    1542582050t17 59 01 Screenshot 54

    1542582197t18 02 22 Screenshot 65

    As for the value of the (2) Total field, it is based on the value of the Date Field that is set to have the current date. You will add the following conditions to your form.

    1542583105t18 14 57 Screenshot 76

    Once you've done all that, use the new Total field in the DelReg Form Calculation widget in your form.

    1542583407t18 21 41 Screenshot 87

    And, hide the unnecessary fields in your form. How-to-Hide-Form-Fields

    Here's a clone version of your form where I have applied the changes above — https://form.jotform.com/83215822167961