- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 02:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 07:12 AM
Hi,
In a client script you can script your condition and set the field label using
g_form.setLabelOf('field_name','New Label');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 03:11 AM
Hi there,
Search in Client scripts for Modify Comments Label and see that the getLabelOf and setLabelOf APIs are being used to accomplish this.
Check the APIs on the Developers site https://developer.servicenow.com/app.do#!/api_doc?v=london&id=r_GlideFormSetLabelOf_String_String for more information.
Hope this helps,
Bogdan Pirsan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 07:12 AM
Hi,
In a client script you can script your condition and set the field label using
g_form.setLabelOf('field_name','New Label');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 09:21 PM
Thanks Barbara.
Is there any way to get the new field label in the report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 06:37 AM
Using this method there wouldn't be a way to get it to show up in reports, it would only change it client side in form view.
If you can give some more details about what you're trying to accomplish with this functionality that could be a help in figuring out how to go about it