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

Sujitha2
Mega Guru

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

4 REPLIES 4

Community Alums
Not applicable

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.

SandeepDutta_0-1683811772967.png

 

 For more details on it :Isolate Script in London

 

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.

 

Sujitha2_0-1683812409894.png

 

Thanks,

Sujitha

not working for me!

 

Sandeep-

This doesn't seem to be working in Vancouver 😞