how to update the Variable label dynamically. i have Variable as type: Label

sk59
Tera Expert

I want to change the label of the variable based on some conditions. The type of the Variable is :Label

1 ACCEPTED SOLUTION

bernyalvarado
Mega Sage

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 = '4183304f4f9b0200fbb73fb28110c75a';


gel('label_IO:' + variableSysID).childNodes[0].childNodes[1].innerHTML = 'My new Label Text Here';



Thanks,


Berny


View solution in original post

7 REPLIES 7

bernyalvarado
Mega Sage

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 = '4183304f4f9b0200fbb73fb28110c75a';


gel('label_IO:' + variableSysID).childNodes[0].childNodes[1].innerHTML = 'My new Label Text Here';



Thanks,


Berny


Hi Berny,



It worked.



Thanks


i have tried for single line text field it is not working ? why ?

my single line text variable is 'a'

 

find_real_file.png