- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2019 08:56 AM
In Catalog Item , I have a Label type variable "For Details , Contact XYZ" , This label should get changed dynamically based on the selection of entitlement reveiwer field.
I have tried using the below :
1.setLabelOf ('Variable,value)
2. gel('label_IO:' + variableSysID).childNodes[0].childNodes[1].innerHTML = 'My new Label Text Here"
But nothing is working, Please provide solution to achieve this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2019 10:11 AM
Hi, 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
Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2019 10:11 AM
Hi, 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
Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 01:51 AM
Any updates on this? Can you mark as correct answer and close this thread?
Thanks!
Abhishek Gardade
Hexaware Technologies
Abhishek Gardade