How to change label value into catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 12:02 AM
Hi,
When the response is Yes, the catalog item variable label should be change.
i have written catalog client script (onchange) to change label value
g_form.setLabelOf('fieldname', 'newname');
But it didnt works, pls assist me to change label name dynamically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 12:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 12:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 12:29 AM - edited 07-24-2023 12:32 AM
Hi @Deepa12 ,
If simple setLabelOf won't work the try below.
Try code on below URL.
Still if you have issue please share variable type for which you are trying.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 12:36 AM
Hello you may refer the below article. setLabelOf will not work for variable labels
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0758098