onUnknownElementMessage()

onUnknownElementMessage()

This function is called when an element is unknown and a validator error message is about to be generated; this function can be used to ignore unknown elements and/or to change or display additional messages when certain unknown elements are used; the following variables are defined when this function is called and may be modified before the validator message is displayed:

$ouem_element - the name of the unknown element

$ouem_msgtext - the message text of the validator message that will be generated

$ouem_msgtextappend - an additional message that is appended to the end of $ouem_msgtext; the default is " Did you misspell it?"

$ouem_msgtextprepend - an additional message that is prepended to the front of $ouem_msgtext; the default is an empty string (New v8.0100)

$ouem_msgcat - the message category of the validator message that will be generated; the default is "" for no category

$ouem_msgflags - the message flags value used when calling MessageEx() to generate the message; set to 0 to cancel the message

$ouem_msgid - the message ID of the validator message that will be generated; the default is -1 for no message ID

$ouem_msgtype - the message type of the validator message that will be generated; the default is $MSG_ERROR

For inactive elements use onInactiveElementMessage().