{"id":1558,"date":"2018-03-16T10:14:19","date_gmt":"2018-03-16T09:14:19","guid":{"rendered":"https:\/\/help.cirrus-shield.com\/docs\/developer-guide\/javascript-library\/get-picklist-name\/"},"modified":"2020-01-13T19:47:57","modified_gmt":"2020-01-13T18:47:57","slug":"get-picklist-name","status":"publish","type":"docs","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-picklist-name\/","title":{"rendered":"Get Picklist Name"},"content":{"rendered":"<p>This function is used to get the picklist label name based on the picklist id provided.<\/p>\n<p>Function: GetPicklistName(&lt;Object Name&gt;, &lt;Field Name&gt;, &lt;Picklist GUID&gt;)Usage:<\/p>\n<p style=\"padding-left: 30px;\">var PicklistLabel = GetPicklistName(&#8220;Lead&#8221;, &#8220;Country&#8221;, lead.Country);<\/p>\n<p style=\"padding-left: 30px;\">Or<\/p>\n<p style=\"padding-left: 30px;\">var PicklistLabel = GetPicklistName(&#8220;Lead&#8221;, &#8220;Country&#8221;, 1332647461507827577);<\/p>\n<p>Output:Success:Picklist labelFailure:An error message will be displayed<\/p>\n<p><!-- bc12efde07ab38deec924963a77f1cd5 --><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":945,"menu_order":16,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_tag":[],"class_list":["post-1558","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/comments?post=1558"}],"version-history":[{"count":2,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1558\/revisions"}],"predecessor-version":[{"id":1590,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1558\/revisions\/1590"}],"up":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/945"}],"next":[{"title":"Get Picklist GUID","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-picklist-guid\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1559"}],"prev":[{"title":"Delete Record","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/delete-record\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1557"}],"wp:attachment":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/media?parent=1558"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/doc_tag?post=1558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}