How to get the display name of a single field (solution)

How to get the display name of a single field (solution)

FYI:

  1. string Field_Display_Name(string form, string field_link_name)
  2. {
  3. url = "https://creator.zoho.com/api/v2/" + zoho.adminuser + "/" + zoho.appname + "/form/" + form + "/fields";
  4.         // allcreatorscopes is an internal API connection with ALL Creator scopes
  5. response = invokeurl
  6. [
  7. url :url
  8. type :GET
  9. connection:"allcreatorscopes"
  10. ];
  11. // https://www.zoho.com/deluge/help/xml-manipulation/executexpath.html
  12. // Note: When using a json object, we have to add an additional '/root' node in the script
  13. return response.executexpath("/root/fields[link_name='" + field_link_name + "']/display_name/text()");
  14. }