--- url: https://developer.youcan.shop/themes/filters/forms/defaultErrors.md --- # Default Errors Generates an HTML list of the error messages of a form. The filter returns an empty string when there are no errors. Use it with `form.errors` inside a [`form`](/themes/tags/form) tag. ## Example ::: details Data ```json { "form": { "errors": { "messages": { "email": "The email field is required.", "password": "The password must be at least 8 characters." } } } } ``` ::: ```liquid {{ form.errors | default_errors }} ``` ::: tip Output ```html
``` :::