Can we change Label of Variables in Variable set for different Catalog Items

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 06:25 AM
Hi All,
I have a requirement, which is based upon using Variable set on different Catalog Items. For "Catalog Item A" I need to display the Variable Label as 'Requested By' and for "Catalog Item B" I need to display the same variable label as 'Requester'.
Can we have dynamic labels set for different Catalog items? If anybody had a similar requirement please do reply.
Thanks in Advance!!!
Sujitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 06:29 AM
Hi @Sujitha2 ,
try using something like the following code in a catalog client script. Please note that you will need to add in there the sysid of you variable.
variableSysID = 'variable sys_Id';
gel('label_IO:' + variableSysID).childNodes[0].childNodes[1].innerHTML = 'My new Label Text Here';
Note : Make sure you Unchecked ISOLATED SCRIPT Checkbox. If its not available on the form then add it to form and do it or you can uncheck it from list view as well.
For more details on it :Isolate Script in London

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 06:42 AM
Hi @Community Alums ,
Here I use Catalog Client Script. So here we have an option called Applies to. So should I use Catalog Item/Variable Set?
I believe if I give it as Catalog Item - then only I'll be able to show this difference in Catalog item vise.
Thanks,
Sujitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 04:28 AM
not working for me!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 06:08 AM
Sandeep-
This doesn't seem to be working in Vancouver 😞