Toggle menu

helper.utilDisplayErrorBlock(fieldID, messages)

Low level jQuery wrapper for displaying an array of error messages.

In your forms you should use .errorDisplay instead. This function is used in the form runtime itself.

Arguments

ArgumentsTypeDescription
fieldIDString, requiredThe ID of the field (usually the form name and field name, separated by an underscore)
messagesArray, requiredAn array of error messages

Example

function (helper) {
    helper.utilDisplayErrorBlock("DISPLAYERRORBLOCK_FIELD2", ["That's an error"]);
}

Last modified on August 24, 2022

Share this page

Facebook icon Twitter icon email icon

Print

print icon