addedValueMacros.formFieldErrorFlag
Syntax
{addedValueMacros.formErrorFlag(formid, elementID, errorFlag, noErrorFlag)}
- formID - the name of a form whose errors are to be reported
- elementID - the name of teh form element whose errors are to be reported
- errorFlag - a string to return if the last submission did find validation errors for the form element elementID in form formID
- noErrorFlag (optional, default "")- a string to return if the last submission did not find validation errors for the form element elementID in form formID
Examples
| {addedValueMacros.formErrorFlag("myEntryForm", "elemA", "*")} |
Semantics
Returns one of two strings, depending on whether the last submission of form
formID foudn validation errors for form element
elementID.
This macro is generally used in form layouts.
See also