g_form.setLabelOf() is not taking effect on Servicenow Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2021 03:28 AM
Team,
g_form.setLabelOf() is not taking effect on Servicenow Instance, but working on ServicePortal.
Is there any way to make it working on Instance too?
Please help..
- Labels:
-
Multiple Versions
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2021 04:08 AM
That should also work in native UI. Could you check the UI type? Make sure it is set to All.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2021 05:28 AM
Yes. Run Scripts in UI type is set to "ALL".
But, still the same. Is it because of browser issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2021 08:15 AM
What kind of variable are you trying to set the label of? Have you tried running an alert or console log just to check if the code goes there?
EDIT:
Based on the API, it's not supported on the Service Catalog setLabelOf
