Creating a complex online order form with payment integration may be a bit tricky at first.
This article will guide you through every step, from adding the first field to having happy customers and money in your account.
Here is a complex order form that we’ve created for demonstration purposes. Even though it looks complex, it’s not that hard to build.
We will divide this tutorial into three parts: Form Editor, Form Rules and Payments.
1. In Form Editor we will divide the form into three parts: contact and delivery details, menu and order confirmation and terms of agreement.
2. The Contact details with the delivery time will contain fields with no special functions, whatsoever.
3. The Menu is where we will add fields and set them as hidden. It takes a bit of time, but we repeat again, it’s not that hard.
4. We will add a multiple choice field (What would you like to order?), which will trigger the behavior of the form. We will explain more at a later step when setting the field rules. With the exception of this field, all fields will be set as hidden in the menu section of this form.
5. We have four fields related to tea and three related to coffee. These fields consist out of single choice fields multiple choice fields, and number fields. Clients will have the possibility to choose the type of coffee and tea they want if they want them sweetened, the quantity and if they want something extra next to them, such as biscuits, muffins, etc. The related fields to tea and coffee will be set as hidden. When clients open the form, they won’t see any details of the drinks, only when they select them from the first multiple choice field.
6. Next we will add Image fields and resize them, to make it look professional. They will be set as hidden and set within Rules to appear only when the client has selected the product related to the image.
7. In the end we will add a Signature field, a Terms of service field and a Heading as an instruction to clients, who have coupon codes to use for discounts. These fields are not hidden and the coupon box is set automatically from Payments. We will explain more in the Payments section of this demo.
Now that’s about it with the Form Editor, but we need to do something with those hidden fields to appear when the client select one product or the other. This sample form works something like this: when the client selects tea all fields related to tea will appear. The same applies when they select coffee.
1. Go to Settings → Rules → Field Rules and check Enable field rules for this form.
2. Next, add one rule at a time. It’s best that you know precisely how you want to set your rules. In this sample, there are eighteen rules. Don’t worry, we will take it slow, step by step.
3. We will need to add a rule for our first checkbox, where we have the two choices set, tea and coffee. Depending on what will the client choose, the selected radio button will show some of the hidden fields. Luckily we can set multiple actions within one field rule. We will set this field rule as follows:
If Tea is checked then show
Add a new rule and repeat the same condition, but this time replace tea with coffee in the first dropdown list within the Edit Field Rule popup.
4. Setting up rules implies logical thinking, so it’s really not that big of a deal. In this demo we have built rules as follows:
You can assign more conditions to the same rule. To add an extra condition to the same rule, click on the green cross in Edit Field Rule and a new line will appear. Set up the new condition and press Save rule when done.
In this section we have assigned the prices of the form’s products, a coupon box for discounts and the payment processor. You can select from a list of payment gateways in Payment processors. To start with, go to the Settings → Payments → Payment Processors section and select the payment gateway you want to use.
1. In this demo we have selected the PayPal payment gateway. You can select and use as many payment gateways you desire, on our platform.
2. In the section Assign Values or Formulas to Fields, we have assigned the necessary prices to the products tea, coffee and all additional extras that come with them.
3. In Summary and Discounts we have set the calculation formulas of the products by the requested quantity. Read more about Payment Summary and Discounts.
4. You can assign coupon codes to your web order form, depending on your needs. We have added two coupon codes on this form. When you assign a coupon code on your form for the first time, a Text box field will automatically appear before the Submit button. Here users can assign one of the codes and receive a discount.
5. In the Payments → Notifications section you can set a variety of options related to email notifications after payments .