Order Items field
What it does
An Order Items field lists the items of the order the customer picked in an Order field on the same form. The customer ticks the items the request is about. You find it in the builder's left panel, in the Store Data group.
Until an order is chosen, the field says "Choose an order to see its items." After the customer picks an order, each item of that order appears on its own line with a checkbox, the product name and the SKU. An item that hasn't been shipped yet says "not shipped yet" after its SKU, and can still be picked.
Items fill in from the order only for a signed-in customer's own orders. A guest sees "Sign in to pick the items from your order, or add them yourself." A guest, or a customer whose order isn't in their account, adds the items by hand: Add Item adds a line with the item's name and, with Customer Enters, up to the Shipped Quantity, its quantity. The field takes up to 50 such lines. When the chosen order is the signed-in customer's own and has items to pick, the customer picks them from the order instead.
Items added by hand aren't checked against an order. The answer marks them "Entered by the customer, not checked against an order", and they have no SKU.
The field saves the ticked items with their names, SKUs and quantities. Wherever the answer is shown, on the submission's page in the admin, in emails, in the PDF and in the customer's account, it reads as a small table with the columns Item, SKU and Qty.
When to use
- Use Order Items when you need to know which items of an order a return, a missing part or a damage report is about.
- It needs an Order field on the same form. Add that first. See Order field.
Settings
Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the field on the form. Its settings show in the right panel, on the tabs General and Appearance. You'll change these settings most often, all on the General tab under Field Settings:
- Order Field picks the Order field whose order the items come from. The list holds the form's Order fields. If it's empty, the panel says "Add an Order field to the form first if the list is empty."
- Quantity has two options:
- Customer Enters, up to the Shipped Quantity: a ticked item gets a quantity box with − and +. Holding a button down keeps changing the number. The customer can't go above the quantity of that item in the order. The limit is the ordered quantity, less what was cancelled or refunded, even for an item that hasn't shipped.
- Whole Line Only: the customer only ticks items, without a quantity. Each ticked item is saved with its whole quantity from the order.
- Minimum Items and Maximum Items limit how many items the customer may tick. The panel says "0 means no minimum. A required field always needs at least one." and "0 means no limit."
- Show Product Images adds a small product picture next to each item.
The table below lists every setting. Visitors see a change after you click Publish Changes in the builder's top bar.
All settings of this field
| Setting | Where in the panel | Values | Translatable |
|---|---|---|---|
| Enable Field | General → Basic | On or off | No |
| Label (required) | General → Basic | Text | Yes |
| Field Code | General → Basic | Text | No |
| Required | General → Basic | On or off | No |
| Required Error Message | General → Basic | Text | Yes |
| Help Text | General → Basic | Formatted text | Yes |
| Tooltip | General → Basic | Formatted text | Yes |
| Order Field | General → Field Settings | Another field of this form | No |
| Quantity | General → Field Settings | Customer Enters, up to the Shipped Quantity, Whole Line Only | No |
| Minimum Items | General → Field Settings | Number | No |
| Maximum Items | General → Field Settings | Number | No |
| Show Product Images | General → Field Settings | On or off | No |
| Hide in Submissions | General → Submission Display | On or off | No |
| Allow in Staff Email Subject | General → Submission Display | On or off | No |
| Submission Label | General → Submission Display | Text | Yes |
| Personal Data | General → Privacy | By field type — Personal data, Not personal, Personal data | No |
| Desktop | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Tablet | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Mobile | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Show Label | Appearance → Style | On or off | No |
| Help Text Position | Appearance → Style | Below input, Above input | No |
| Container Classes | Appearance → CSS | Text | No |
| Input Classes | Appearance → CSS | Text | No |
| Custom Attributes | Appearance → Advanced | Text | No |
| Inline Style | Appearance → Advanced | Text | No |
Validation
| Check | What the visitor sees |
|---|---|
| Required, no item ticked | "This is a required field." under the field. |
| Fewer items ticked than Minimum Items | The form isn't sent, and the page shows the field's label followed by "pick at least" and the number, for example "Which items are missing parts?: pick at least 2 items." |
| More items ticked than Maximum Items | The form isn't sent, and the page shows the field's label followed by "pick at most" and the number, for example "Which items are missing parts?: pick at most 1 items." |
| A quantity typed above what the order holds | A red note under the item, such as "more than the 2 shipped", and the form isn't sent. The note says "shipped" even for an item that hasn't shipped. |
| A guest typed an order number | "Sign in to pick the items from your order, or add them yourself." in place of the list, with Add Item. |
| Items added by hand while the customer's own order has items to pick | The form isn't sent, and the page shows the field's label followed by "pick the items from your order." |
Logic
- Start a rule: no. An Order Items field can't start one. Its Logic tab appears only once a rule shows or hides it, and lists that rule.
Limits
- Only signed-in customers pick items from their own orders. Guests add items by hand, and you check them against the order yourself.
- A customer adds items by hand or picks them from the order, not both in one answer.
- The field lists the items of one order, the one chosen in its Order Field.
Troubleshooting
- The field only says "Choose an order to see its items." The customer hasn't picked an order yet, or Order Field points at no field. Check Order Field in the field's settings.
- The quantity can't go higher. The customer reached the quantity of that item in the order, less anything cancelled or refunded.
What's next
- Order field: what the customer sees when choosing the order.
- Orders and customers: find the order from the submission, and the submission from the order.