-
piecesoflifephotoAsked on April 24, 2017 at 8:40 PM
I have a form which has a place for two people to register for our event;
Name #1 - $42.00 plus $2.00 Paypal fee = $44.00
Name #1 - $42.00 plus $2.00 Paypal fee = $44.00
I want to add a discount box, example, enter AMA# here and receive a $2 discount and have the form calculate that for me. I need it to calculate if they only enter one AMA# or if they enter 2.
The coupon code isn't working for me because each one has a different AMA#
Thank you,
Jeannette
575-937-4888
-
SvenReplied on April 25, 2017 at 3:13 AM
I cloned your form and did some changes to allow calculations on PayPal payments, you can review it/clone it via this URL:
https://form.jotformpro.com/71141972731959
here's what I did:
1. I added a multiple choice field to hold your two products, I then assigned a value of 44 to each product.
2. I added a text field to hold your AMA.
3. I added another field to hold the AMA number value (which is 2 if the AMA is correct).
4. I added a form calculation widget, that will hold the calculation, from the multiple choice field, and the AMA field.
5. I then changed the PayPal settings to accept value from a pre-defined field and assigned it to take its value from the calculation widget above.
You can clone the form and use it, but you need to add conditions to populate the AMA number field, an example logic would be:
IF AMA contains "XYZ"
THEN ADD 2 into AMA NUMBER
This way, you can select one or two products, and your users can add in the AMA, if it matches your conditions, the form calculation widget will calculate the new total, and send the total the PayPal to process the payment when the submit.
I hope this answers your question, if you have any further questions please get back to us so we can assist you further.
Thank you.
-
piecesoflifephotoReplied on April 25, 2017 at 12:43 PMThank you for your response. I am still a little confused. How do I clone
the form you created, and can each user enter a different AMA#?
... -
Support_Management Jotform SupportReplied on April 25, 2017 at 2:31 PM
You may clone my colleague's form by following the guide he linked on his post. Here it is again for your convenience.
Complete guide: How-to-clone-an-existing-form-from-a-URL
To answer your other question, based on how Sven designed the form, yes, each user can enter a different AMA# but you should know ALL the possible AMA#'s beforehand so you can use it as the IF condition for your discount to apply.
AMA# = will serve as a coupon code
AMA Number = will serve as the actual amount of discount (in your case, it's $2 so the value is 2)
e.g. Say, one of your AMA#'s is 12345
IF AMA# IS EQUAL TO 12345 THEN INSERT 2 to AMA Number
Related guide: Smart-Forms-Using-Conditional-Logic