SiteTools.validateObject (Method)

Returns either an empty string or an error message indicating why an object does not meets the validation requirements set in the 'validationType' argument. If the 'errorMessage' argument is not an empty string and the object fails validation, an error is thrown using this specified message.

Returns:

String

Arguments:

Name Type Required Description
object Any Required The object being validated.
validationType PlainText_NonNull_150 Required A string specifying a validation type.
errorMessage PlainText_2000 Optional. Defaults to an empty string. The error message displayed when object validation fails. If this is an empty string, CommonSpot does not display an error message.

Context:

License Requirements None
Permission Requirements Authenticated
Deny Context None
Require Context None
Author Lock  

Error Codes:

None

Notes:

None