How to get the display name of a single field (solution)
FYI:
- string Field_Display_Name(string form, string field_link_name)
- {
- url = "https://creator.zoho.com/api/v2/" + zoho.adminuser + "/" + zoho.appname + "/form/" + form + "/fields";
- // allcreatorscopes is an internal API connection with ALL Creator scopes
- response = invokeurl
- [
- url :url
- type :GET
- connection:"allcreatorscopes"
- ];
- // https://www.zoho.com/deluge/help/xml-manipulation/executexpath.html
- // Note: When using a json object, we have to add an additional '/root' node in the script
- return response.executexpath("/root/fields[link_name='" + field_link_name + "']/display_name/text()");
- }