How to get field label from field name?

tahnalos
Kilo Sage

For any field in a GlideRecord, what is the method used to grab the label name?

Thanks

11 REPLIES 11

I did.  That example is useful in a Service Catalog with Request items.

What I am doing does not involve service catalog.  Rather, it handles an integration from an outside source.

Community Alums
Not applicable
grTarget.getElement(fieldName).getLabel()

Not sure if you were able to sort it but this did the trick for me and it also seems to support dotwalking.