Scoped GlideElement - setDisplayValue(Object value)

Sets the display value of the field.

Table 1. Parameters
Name Type Description
value Object The value to set for the field.
Table 2. Returns
Type Description
void
var glideRecord = new GlideRecord('incident'); 
glideRecord.query('priority','1'); 
glideRecord.next();
 
//change the urgency to 3 
glideRecord.urgency.setDisplayValue('3 - Low');
gs.info(glideRecord.urgency);

Output: