Scoped GlideSPScriptable - getField(GlideRecord gr, String fieldName)

Returns information about the specified field in the specified GlideRecord.

Table 1. Parameters
Name Type Description
gr GlideRecord The GlideRecord to check
fieldName String The field to find information for
Table 2. Returns
Type Description
Object An object containing the field's label, value, displayValue, and type. Returns null if the GlideRecord of field name are not valid, or if the field is not readable.