JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
PayPal processing: Adding coupons to donation paymentAsked by tomorrownight on October 13, 2014 at 07:16 AM
is there anyway i can add coupons for this form?
It has to use a donation mechanism because it is working like a shopping cart. I need to be able to have a coupon box for people in the band and VIPs to get in for free or reduced amount.
What would be the best solution to this?
Yes, you could do this, but you would need to use conditions. A possible problem with this is that this would be possible to find in the source code by someone that is skilled with this.
You can set it up by creating a coupon box where they should enter the code (if they have it) and then check with the conditions. If the entered code matches the code in conditionals then you can subtract this value from the amount they are going to pay (or set it to 0).
One way to do this would be to add another hidden field that has 0 and add it to form calculation to subtract the value from the one you already got. If they do not enter any coupon it would subtract 0 from it so it will not be changed.
Once the match is found for coupon, just enter the value that you want for that coupon to have and it will be subtracted.
You could also use multiple instead of subtract so you can multiple by 1 by default, which would not change the value, or multiple by 0 which would set it to 0. In same manner you can get any percentage for your coupon (example: 20% off would be [value * 0.8] ).
I hope that makes sense, I am sorry if it does not, but if you need help setting it up, just let us know and we can help you set it up. :)