cartdini
Get Free

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 examples

Cartdini 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.

Match the rule to the information you actually need
ConfigurationAccepted exampleRejected example
Required delivery instructionsLeave at reception.An empty answer.
Text minimum 3, maximum 20PO-2048AB, or text longer than the configured maximum.
Number minimum 0, maximum 20, step 10 or 3-1, 21 or 2.5.
Optional email inputA valid email-shaped answer, or blank.A nonempty malformed email value.
URL inputhttps://example.test/artworkA nonempty unsupported scheme or malformed URL.
Select with saved choicesOne 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

  1. 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.

  2. 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.

  3. 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.

  4. 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

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