1. Home
  2. /
  3. Developer Guide
  4. /
  5. JavaScript Library
  6. /
  7. Get Picklist Name

Get Picklist Name

This function is used to get the picklist label name based on the picklist id provided.

Function: GetPicklistName(<Object Name>, <Field Name>, <Picklist GUID>)Usage:

var PicklistLabel = GetPicklistName(“Lead”, “Country”, lead.Country);

Or

var PicklistLabel = GetPicklistName(“Lead”, “Country”, 1332647461507827577);

Output:Success:Picklist labelFailure:An error message will be displayed

Was this article helpful to you? No Yes

How can we help?