The Total doesn't need to be linked to anything. You simply add it to your form. It automatically totals up any product, option, and shipping fields that have a quantity of 1 or more.
Using them is just like using any other field in the form editor. If you want to create an order form then it's going to consist of:
- Shipping option (if necessary)
So you'd add a Product Field to your form, edit it and configure it's options based on your needs.
If that product has options you would then add an Option Field to your form, edit it and configure it's options based on your needs. You can add multiple Option Fields.
If the user selects the Product and Options then the price will automatically be calculated in the Total.
A couple things to note...
- If your form has ONE Product Field then any Option Fields you add are automatically tied to that Product Field because it knows there is only one.
- If your form has MULTIPLE Product Fields then a new option appears on each Option Field to select which Product Field it is associated with.
So if you have a T-Shirt that has 4 Sizes you would...
- Add a Product Field to your form, edit it and configure it's options such as the field type, price, etc. If it's a Single Product field type then the Field Label acts as the Product Name. If it's a drop down or radio button field type then the drop down/radio button choices you configure act as the name and the user picks from the choices. So in this example i'll use Single Product and give it a Field Label of "My Cool T-Shirt"
-- Add an Option Field to your form, edit it and select Drop Down from the field type option. Then in the choices add each size and it's price.
- Add a Total Field.
- Save your form.
Now if you preview the form if the user adds a quantity in the Product Field, it will be reflected in Total. If you configured the Options to impact the price (+$1.00 or -$1.00 for example) then as they select options it too will impact the Product price which impacts the Total.
The Shipping Field works similar to the Product Field only it doesn't work with Option Fields. The Shipping Field price is then added to the total.
The Quantity Field is optional and only if you want a separate Quantity field. Since the drop down and radio button Product Field type doesn't display a Quantity that is when you may want to use the Quantity Field. Or if you want to restrict the Quantity to certain selections you can use a separate Quantity field to do so. T
he Quantity field ties to a specific Product Field the same way Option Fields do: if multiple Product Fields exist then an additional option appears in the Quantity Field settings to select which Product Field it goes with. If only one Product Field exists, then it's assumed.
The best thing to do is just create a test form and play around with it. That is the best way to learn what the various options and features do.
I created a quick sample form, you can download it here:
Download that XML file then go to your site and go to Import/Export and choose Import Form. Then upload that XML file. It will create a form called "Gravity Forms T-Shirt Order Form". You can take a look and see how it works.
The available options for each field can be found in the documentation here:
Posted 8 years ago on Wednesday October 12, 2011 | Permalink