Scoped GlideElement - setError(String errorMessage)

Adds an error message. Available in Fuji patch 3.

Table 1. Parameters
Name Type Description
errorMessage String The error message.
Table 2. Returns
Type Description
void
var glideRecord = new GlideRecord('incident');
glideRecord.query('priority','1');
glideRecord.next();
 
glideRecord.short_description.setError('Error text');