This function is used on presentation pages to populate the Java script with the desired error message. The error message is set from the content rule user interface for a field that is designated as required. It returns a required message based on the following algorithm:

  1. The function looks for the fieldname:requiredMsg.

  2. If the value exists, it is localized.

  3. If the value is undefined or the message is empty, the function returns the default message and does not localize it. To localize the message, the caller of the function must use the lc function on the default message before passing it to this function (getRequiredMsg).

Type and Usage


This function takes two parameters:

  • Fieldname: Field associated with the error message.

  • Message: Default message to be used.

See Also