Discount Code
-
Hello!
Some time ago you helped me create a formula to create discount codes that worked very well, but in the last update does not work anymore.
This is the code:
(function () {var discount = 0; // Here’s an X saying missing “use strict” statement //
if ([field_rnField23] == ‘LACA350’)
discount = 350;
if ([field_rnField23] == ‘LACA600’)
discount = 600;
return [field_rnField11] – discount;
} ())Field23 is the id of the field that will hold the coupon code
Field11 is the id of the field that will hold the donation amount
Where do I put the field that receives the number of people?In the form I have a multiple radio field with two defined prices $ 650 and $ 750 and a field of number of people multiplying the price.
this code I enter it in a field of total of only read and I appear undefinedThe page I need help with: [log in to see the link]
- The topic ‘Discount Code’ is closed to new replies.