How to implement discount in the form using calculation widget?

  • Profile Image
    mrborry
    Asked on November 24, 2014 at 11:15 AM

    One final thing though and I'll leave you alone forever. I have been trying to implement a discount on the system.

     This is as follows:

     

    IF

    totaldaysrequired >7

    THEN

    -1 FROM totaldaysrequired

     

    IF

    totaldaysrequired >14

    THEN

     

    -2 FROM totaldaysrequired

     

    In my simple little mind this will give the user every seventh day for free as the calculation is 'please select product * totaldaysrequired

    Any chance you could help me out with that?

    Regards

  • Profile Image
    Welvin
    Answered on November 24, 2014 at 11:46 AM

    Hi,

    I think your form needs some adjustment in terms of calculating values. For example, the Total Days should be a separate calculation and the Number of Days which is the less into another.

    Can you please check this cloned version of your form: http://www.jotformpro.com/form/43274651724961. Let me know if this sounds good!

    Total Days calculation widget = Calculate the number of days between the two dates

    Discount = Value on this field is inserted using the conditional logic. That if the value is greater than 7, insert 1 and if the value is greater than 14, insert 2.

    Total Fee = Total Days - Discount * Price (Please select product)

     

    We can also add a conditional logic to still add a discount if the Total Days "is equal" to 7, same if equal to 14.

    Thank you!

  • Profile Image
    Welvin
    Answered on November 24, 2014 at 11:49 AM

    I have updated this thread with screenshots, please kindly review again :) Access this thread: https://www.jotform.com/answers/463936.

    Thank you!