addedValueMacros.formFieldErrorText
Syntax
{addedValueMacros.formFieldErrorText (formid, elementID, errorListPrefix, errorItemPrefix, errorItemSuffix, errorListSuffix)}
- formID - the name of a form whose errors are to be reported
- elementID - the name of the form element whose errors are to be reported
- errorListPrefix (optional, default "") - a string to prepend to the list of errors
- errorItemPrefix (optional, default "<br>") - a string to prepend to each error
- errorItemSuffix (optional, default "") - a string to append to each error
- errorListSuffix (optional, default "") - a string to append to the list of errors
Examples
| {addedValueMacros.formErrorText("myEntryForm", "elemA",)} |
Semantics
Returns one a list of validation errors for form element
elementID from the last submission of form
formID.
This macro is generally used in form layouts.
See also