Next-Level Code. Nexuvibe Style ...

Hrs
Min
Sec
WordPress Order Forms & Dynamic Data

How to Build Dynamic Order Forms in
WordPress Using Gravity Forms

Static order forms with a fixed number of product slots waste space for small orders and are not enough for large ones. This guide shows you how to build order forms that adapt to each customer using repeatable line items with per-row calculations.

9 min read
Updated 2026
Practical Tutorial
How to build dynamic order forms in WordPress using Gravity Forms – creating repeatable line items with automatic calculations and variable product rows 2026

Every business that takes orders online eventually runs into the same problem: the order form is either too rigid or too bloated. If you pre-build ten product rows, customers ordering two items see eight empty rows they have to scroll past. If you build three rows, the customer ordering a dozen items has no room. Neither approach works because both assume you know how many items the customer wants before they tell you.

A dynamic order form solves this by letting customers add line items as they need them. They start with one product row, fill it in, and click a button to add another. Each row calculates its own subtotal. The order total updates automatically as rows are added or removed. The form stays short for small orders and expands for large ones. The customer controls the form, not the other way around.

Gravity Forms gives you the field types, the calculation engine, and the payment integrations needed for order forms. What it does not give you natively is the ability to repeat a group of fields dynamically. That is where a repeater plugin fills the gap.

This tutorial walks through building a complete dynamic order form using Gravity Forms and the NEXU Advanced Repeater plugin for Gravity Forms with dynamic per-row calculations. By the end, you will have an order form where customers add as many products as they want, each row calculates automatically, and the total stays accurate.

What you will build in this tutorial
→A customer information section with name, email, phone, and shipping address.
→A repeatable line-item section where customers add products with name, quantity, unit price, and auto-calculated row total.
→An order summary that aggregates all row totals into a grand total.
→A notification email that displays the order as a readable table, not a data dump.
→A structured admin entry view where you can review each order at a glance.

Why static order forms create real business problems

Before getting into the how, it is worth understanding why this matters beyond just aesthetics. Static order forms cause actual operational problems that cost businesses time and money.

Form abandonment from visual overload

When a customer opens an order form and sees 15 pre-built product rows, most of which are empty, the form feels longer and more complex than the actual order. This visual weight triggers abandonment. Studies on form completion consistently show that perceived length matters as much as actual length. A form that shows only the fields you need feels faster, even if the final submission contains the same amount of data.

Manual calculation errors on the admin side

Without per-row calculations, someone on your team has to manually compute subtotals and totals from the submitted data. For a wholesale business processing 50 orders a day, this manual step introduces errors, slows order processing, and creates a bottleneck that a properly built form would eliminate entirely.

Unreadable entry data slows order fulfillment

When your team opens a submitted order in the WordPress admin and sees a long, fragmented list of field values with no clear row structure, understanding the order takes minutes instead of seconds. Multiply that across your daily order volume and you have a workflow problem that a structured entry display would solve.

🔗For businesses needing scalable solutions, Gravity Forms dynamic list add-ons enable seamless repeatable fields with conditional logic and real-time calculations. →

Step 1: Set up the customer information section

Open the Gravity Forms editor and create a new form. Start with the fields that capture customer information. These fields appear once per submission and are not part of the repeatable section.

Add a Name field, an Email field, a Phone field, and an Address field. These are standard Gravity Forms fields that you have probably used before. Configure them with appropriate validation: make the name and email required, set the email field to validate the format, and choose the address format that matches your business region.

You can also add an optional Notes field (paragraph text) for customers to include special instructions. If your business uses purchase order numbers, add a single-line text field for that as well. The key point is that everything in this section is one-time information about the customer, not about the products being ordered.

Keep the customer section above the repeater
Placing the customer information section above the repeatable product section means the form loads with a familiar, simple set of fields. The customer fills in their details, then moves into the dynamic line-item section. This ordering feels natural and reduces the chance of customers being confused by the add-row interface before they have completed the basics.

Step 2: Build the repeatable line-item section

This is where the order form becomes dynamic. Using the NEXU Advanced Repeater plugin for building dynamic order forms with Gravity Forms, add a Repeater Start field below your customer information section. Then add the fields that make up one line item.

1
Product name or SKU

Use a single-line text field if customers enter custom product descriptions, or a dropdown field if they select from a predefined product catalog. A dropdown is better for businesses with a fixed product list because it eliminates typos and lets you assign prices to each option automatically.

2
Quantity

A number field with a minimum value of 1. You can also set a maximum if your inventory has limits. Make this field required so that every row in the order has an associated quantity. Without a quantity, the row total calculation cannot work.

3
Unit price

A number field formatted as currency. If your products have fixed prices, you can populate this automatically from the product dropdown selection. If customers set their own prices (for quote requests or custom orders), leave it as a manual input.

4
Row total (calculated)

A number field with a calculation formula: quantity times unit price. This field updates automatically when the customer changes either value. It should be visible but not editable, so the customer can see the line total without being able to override the calculation. This per-row calculation is what makes the order form genuinely dynamic.

After placing these four fields, add the Repeater End marker. Everything between the start and end markers is now your line-item template. On the frontend, customers will see one row with these fields, and an “Add Row” button to add more items to their order.


Animated preview of a dynamic order form built with Gravity Forms and NEXU Advanced Repeater showing customers adding product line items dynamically

A dynamic order form where customers add line items with per-row calculations using NEXU Advanced Repeater.

Gravity Forms dynamic order form frontend showing multiple product line item rows with quantities and calculated totals

The completed order form with multiple line items filled in by the customer.

Step 3: Add the order summary section

Below the Repeater End marker, add the summary fields that aggregate the order. At minimum, you need a grand total field that sums all the row totals. Depending on your business, you might also want fields for shipping cost, tax calculation, or a discount code.

The grand total uses Gravity Forms’ calculation feature to sum the row total values from the repeater section. When a customer adds a new line item or changes a quantity, the grand total updates in real time. This immediate feedback is critical for order forms because customers need to know their total before they submit.

If you want to add a terms-and-conditions checkbox or a preferred delivery date field, this is the section for those as well. Everything below the repeater section is non-repeating order-level information.

Step 4: Configure notifications for order confirmation

An order form submission should trigger at least two notifications: one to your team (the order notification) and one to the customer (the order confirmation). Both need to present the order data clearly.

The repeater plugin generates merge tags that output the line items as a formatted table in the email body. Your team notification should include all fields: customer information, the full line-item table, and the order total. The customer confirmation can be a simpler version that thanks them for their order and includes their line items and total.

🔗For complex pricing structures, implementing Gravity Forms nested field calculations ensures accurate per-row totals in dynamic order forms. →

The difference between a usable order notification and a frustrating one is entirely in how the repeated data is formatted. An email that shows a clean table with columns for product, quantity, price, and row total is immediately actionable. An email that dumps raw data forces your team to reformat every order before processing it.

Test the notification before going live
Submit a test order with at least three line items and review both notification emails. Check that the line items appear as a structured table, that the row totals are correct, and that the grand total matches the sum of all rows. Also verify that the email renders correctly in different email clients. Notification testing is the step most people skip, and it is the step that prevents the most common post-launch support requests.

Industries and use cases where dynamic order forms make the biggest difference

Dynamic order forms are not limited to traditional e-commerce. Any business that collects variable-length item lists from customers or clients benefits from this approach. Here are the industries where we see the strongest impact.

1
Wholesale and B2B suppliers

Wholesale orders vary dramatically in size. One retailer might order 3 products, another might order 40. A dynamic form handles both naturally. Per-row calculations show line totals instantly, and the structured entry makes order processing immediate rather than requiring manual data entry into your inventory system.

🔗By leveraging the Gravity Forms repeater field implementation, you can create dynamic order forms that automatically adjust to each customer’s item count without manual coding. →

2
Catering and food service

Catering orders need menu items, quantities, per-serving pricing, and special dietary notes. Each event is different. A dynamic form lets the client build their menu item by item, see the running total, and submit everything in one structured order that the kitchen can read directly.

3
Print shops and custom manufacturing

Custom print orders often include multiple items with different specifications: product type, size, material, quantity, and per-unit cost. Each item is unique. A dynamic form captures all of this per-item, calculates totals automatically, and produces an order record that can feed directly into production scheduling.

4
Service businesses with variable scopes

Agencies, consultants, and contractors who receive project requests with variable scope can use a dynamic form to collect task descriptions, estimated hours, and hourly rates per line item. The form becomes a built-in quote calculator that both the client and the service provider can reference.

When to use Gravity Forms order forms versus WooCommerce

A fair question to ask is why you would use a Gravity Forms order form instead of WooCommerce. The answer depends on your business model and workflow.

WooCommerce is the right choice when you have a product catalog that customers browse, add items to a cart, and check out. It is a full e-commerce platform with inventory management, shipping calculations, product pages, and a customer account system. If your business fits that model, use WooCommerce.

Gravity Forms order forms are the right choice when the ordering process is closer to a form submission than a shopping experience. Wholesale orders from existing clients, service quotes, catering requests, internal procurement, and any scenario where the customer fills out an order and submits it for processing rather than browsing a catalog. In these contexts, a Gravity Forms order form is lighter, faster to build, and more appropriate than a full WooCommerce installation.

There is also a middle ground. The Gravity Forms Product Add-ons for WooCommerce lets you attach Gravity Forms to WooCommerce products, combining the form builder’s flexibility with WooCommerce’s cart and checkout flow. This works well for products that require custom configuration before purchase.

Design decisions that improve order form conversion

Beyond the technical setup, there are design choices that directly affect how many people complete your order form versus abandoning it partway through.

Show the running total prominently

Customers want to see their order total as they build it, not after they submit. Place the grand total field in a visually prominent position below the repeater section. Consider using larger text or a highlighted background so it stands out. When customers can see the cost building in real time, they feel in control of the process.

Keep each row lean

Resist adding every possible field to the repeater row. If a field does not vary per line item, it does not belong in the repeater. Customer-wide fields like shipping preference or payment terms should be outside the repeater section. Each field inside the repeater is multiplied by every row, so unnecessary fields compound quickly.

Add a row limit for your context

Most order forms have a practical maximum. A restaurant supply order probably does not exceed 50 line items. A print shop order rarely has more than 20. Setting a reasonable maximum prevents accidental row multiplication and keeps the form performant. If a customer genuinely needs more items than your limit, they can submit a second order or contact you directly.

🔗By integrating Gravity Forms dynamic dropdowns for order forms, you can streamline product selection and reduce manual input errors for customers. →

Test on mobile before launch

Wholesale buyers and catering clients often place orders from their phones during off-hours. Test your form on a real mobile device. Ensure the row layout stacks properly, the add-row button is easy to tap, and the running total is visible without scrolling back up. Mobile ordering is no longer a nice-to-have; it is expected.

Build the order form your customers actually want to use

A dynamic order form is not a luxury feature. For any business that takes variable-size orders, it is the difference between a form that customers complete willingly and one they tolerate reluctantly (or abandon entirely). The technology to build this has been available for a while. What has been missing is a practical, code-free way to add repeatable line items with per-row calculations to Gravity Forms.

The setup described in this guide takes about 30 minutes to build and test. Once it is running, your order processing changes fundamentally: customers submit structured, pre-calculated orders, your team reviews clean entry data, and the notification emails are immediately actionable. The time savings compound with every order.

Dynamic Line Items · Per-Row Calculations · Structured Orders

Turn your Gravity Forms into a dynamic order system

Customers add line items, quantities auto-calculate, totals update in real time, and your team receives structured, readable orders. From $19/year.

NEXU Advanced Repeater for Gravity Forms – dynamic order forms with per-row calculations

NEXU Advanced Repeater by NEXU WP
Gravity Forms Add-on · From $19/year · Calculations · Dynamic Rows


Get NEXU Advanced Repeater

Picture of Mahdi Jabinpour

Mahdi Jabinpour

As a sales-driven developer and the founder of NexuWP, Mahdi focuses on building WordPress solutions that don't just work—they convert. From AI-powered bulk translation engines to high-efficiency media offloading, he helps business owners automate the "grind" so they can focus on global growth. He is a pioneer in integrating advanced LLMs into the WordPress workflow.

RELATED POSTS

RELATED POSTS

3 Reviews
Steven Smith 8 months ago

I was seriously impressed with how easy it was to set up the customer info section name, email, phone, shipping address, all of it. The guide actually walks you through each step in a way that makes sense, and the fields just work with the order form without making everything look messy. the layout stays clean and only expands when it needs to. Honestly, I've had fewer people bail mid checkout since switching to this, and that's a huge win

Mahdi Jabinpour 8 months ago

That's exactly what we aimed for a checkout process that feels effortless for both you and your customers. Thanks for noticing the difference it's making!

Mary Wilson 8 months ago

As someone who's been using Gravity Forms for years, I was really excited to see this tutorial on dynamic order forms. the repeater feature is perfect for my clients who need flexible order lengths no more trying to predict how many product rows to add upfront. But once everything's configured, the per row calculations run like a dream.

mehdiadmin 8 months ago

We're your feedback means a lot to us

Richard Martin 8 months ago

Finally found a solution that doesn't shove everyone into the same rigid form. The repeater plugin lets you add line items as needed no wasted space or random limits. No more groaning about scrolling through empty rows!

Mansour jabinpour 8 months ago

It's so rewarding to know our forms make your experience easier that's exactly how they should work. we really appreciate you taking the time to mention it

Please log in to leave a review.