Customer form errors
If your customer form submission failed for any reason, you can output errors with this tag pair.
Tag pairs
missing
- Loops through the missing required fields.
Variables
tax_number
- This will be
true
if an invalid tax number has been provided. field
- The
name
attribute of the missing field. Available in themissing
tag pair. field_label
- The proper name of the field as defined in the language config file. Available in the
missing
tag pair.
Example
{{ bison:customer_form_errors }}
<p>Please correct the following errors:</p>
<ul>
{{ missing }}
<li>Required field missing: {{ field_label }}</li>
{{ /missing }}
{{ if tax_number }}
<li>The tax number provided is invalid.</li>
{{ /if }}
</ul>
{{ /bison:customer_form_errors }}
Problem with this page? Edit it on Github.