Dynamically update the Rich Text label field(catalog variable) on the RITM

s_dinesh01
Tera Expert

Hey,

 

i need to dynamically update the Rich text variable which is a catalog variable where im updating with the Hyperlink dynamically using client script

if we use setLableOf will work only on the client side and not on the RITM or Task level

if we use the DOM manipulation also works only on client side

is there a way where we can dynamically update the RIchTextLabel

Thanks in advance

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@s_dinesh01 

it won't work like that for Rich text label variable

You can have 2 different Rich text variables and include the link you want in each of those

Then use g_form.setVisible() to show/hide the variables based on your logic

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@s_dinesh01 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader