Question
Hello,
I need some help setting up my form. I sell some packages and right now what I want to do is this:
Package A: – option 1 – option 2 -option 3
PACKAGE B: -option 1 -option 2 -option 3
If the buyer chooses one option from Package A and ALSO one option from package B, i want to apply a discount of 20% for Package A
Is this possible ?
Answer
Yes, this is possible with the Custom JS element. The following form uses the Custom JS element in order to apply a 20% discount when both checkbox elements have at least one selected option each.
Form
Loading...
How-To
- Click on the “Toggle element info” button in the action bar. The Element IDs should be visible now
- Open up the Custom JS element and scroll down to the “Custom_calculation” option
- (optional) Change the discount amount to your needs
- Replace the IDs (727 and 728) with the checkbox IDs in your form
- That’s it!
Please note that element IDs change every time when a form is imported.