addedValues Plugin

...Powerful Free! Database Expansion for Manila
logoBottle:

(1 or more words)


Get tropes here!
Click to see internals
Report bug


AECC

sitepic_aeccSite.gif:
Viewable with Any Browser

Members
Join Now
Login

formErrorText Macro

Syntax

{addedValueMacros.formErrorText (formid, formListPrefix, formItemPrefix, formItemSuffix, formListSuffix, elementListPrefix, elementItemPrefix, elementItemSuffix, elementListSuffix)}

Examples

{addedValueMacros.formErrorText("myEntryForm")}
If there were 1 form field with errors, elemA with 2 error messages, the above call might return
<ul>
<li>elemA
<ol>
<li>text of first error message</li>
<li>text of second error message</li>
</ol>
</li>
</ul>

Semantics

Returns a string layout of any validation errors from the last submission made to the form called formID. If there were no errors, returns an empty string. The remaining parameters determine the look and feel of the response.

This macro is generally used in form layouts.

See also