less than a minute read • Updated a day ago
Create a purchase form with Webflow's Form Builder
In this article we show you how to use Webflow's form builder to setup a purchase form to sell any type of product or service. We'll cover how to handle different product types later in the article.
Note
This article assumes you have a good understanding of how Webflow forms work. If this is your first time using Webflow's form builder, please visit this page.
Assumes familiarity with Webflow forms. See Webflow's intro to forms if you're new to the builder.
Add the Foxy loader snippet
Set up the purchase form
Customer and billing details (name, email, card number) are collected on the Foxy checkout, so don't add those fields here.
Add the required product fields
Foxy needs at minimum a product name and price. Since Webflow doesn't support default values on plain input fields, use hidden select fields instead.
Set the form action
Sell a subscription
Add a select field named sub_frequency. Set each choice's value to a frequency such as 1d, 2w, 1m, or 1y. Hide the field if you want a fixed frequency, or leave it visible to let the customer choose.
Accept donations
Skip the hidden price select field. Instead add a visible input field named price so donors can enter their own amount.
Add product variants
Use a select or radio field for choices like size.
Display a quantity field
Add a field named quantity (lowercase) as an input or select field to let customers choose quantity before adding to cart.