FREE VALIDATION · PRO CONDITIONAL RULES
Validate custom WooCommerce checkout fields
Require the answers you need, limit their length and set meaningful number bounds. Cartdini checks supported custom-field rules on the server as well as guiding shoppers in Classic and Checkout Blocks.
Get Cartdini Free See validation examplesCartdini documentation · Product guidance reviewed . Public Free 1.8.16; separately supplied Pro 1.8.15. Recorded examples retain their tested versions and dates. This content review is not a new runtime test.
Validate the answer’s shape—not its real-world truth
Free supports required answers, supported text-length limits, email/HTTP(S) URL checks, configured choice values and number minimum/maximum/step rules. A valid email shape does not prove ownership, a telephone input does not verify a phone number, and a reference does not prove a purchase order exists. Native WooCommerce address validation remains WooCommerce’s responsibility.
Examples to try on staging
These are illustrative configurations and expected results, not a report of new test orders.
Scroll horizontally to see every column. Keyboard: focus the table, then use the arrow keys.
| Configuration | Accepted example | Rejected example |
|---|---|---|
| Required delivery instructions | Leave at reception. | An empty answer. |
| Text minimum 3, maximum 20 | PO-2048 | AB, or text longer than the configured maximum. |
| Number minimum 0, maximum 20, step 1 | 0 or 3 | -1, 21 or 2.5. |
| Optional email input | A valid email-shaped answer, or blank. | A nonempty malformed email value. |
| URL input | https://example.test/artwork | A nonempty unsupported scheme or malformed URL. |
| Select with saved choices | One configured option. | A submitted value that is not among the configured options. |
An optional empty answer is allowed; a minimum length does not turn an optional field into a required one. For “required only when…”, use a Pro conditional requirement. See visibility and requirement rules.
Configure and save the limits
Choose the correct input type.
Use Text for identifiers with letters or leading zeros, Number for quantities, and Textarea for longer instructions. An HTML input type is not a substitute for choosing appropriate rules.
Review Answer limits.
For supported text inputs, set a maximum from 1–5000 and an optional minimum no greater than that maximum. Clearing the minimum in Free 1.8.16 means no minimum; clearing the required maximum remains invalid. Test long or emoji-containing answers if they matter to your workflow, because browser-compatible length counting need not equal visual glyphs.
Bound numeric answers deliberately.
Use a minimum, maximum and positive step suitable for your business. An unconstrained Number question can accept negative values and finite scientific notation; it is not automatically a positive whole-number quantity. The configured bounds and step determine what is permitted.
Explain the requirement before the error.
Use the label and help text to explain what is needed. Save questions & fields, then open the actual staging checkout; unsaved editor drafts do not change validation.
Test rejection and successful correction
- Try a missing required answer and each boundary just outside your configured limits.
- Correct the answer without changing the settings and finish a test/offline order.
- Confirm ownership and the saved value on the order, not just the browser message.
- Repeat in every checkout layout and relevant guest/signed-in flow your store uses.
- For Pro rules, change the source answer and test visible, hidden and conditionally required states.
Checkout-context verification and stale-admin-save conflicts are separate protections. Do not remove those checks to resolve a validation problem. If checkout reports missing verification rather than an answer error, use the integration troubleshooting guidance.
When you need Pro
Pro adds conditional requirements and advanced date/time, selection, file and repeatable-group validation. Date availability is not capacity booking; upload restrictions are not malware scanning. Choose rules that reflect a real fulfilment need rather than rejecting harmless answers unnecessarily.
Related setup
Add your first field · Collect a purchase reference · Edit native checkout fields