Rich Text Label not updating in RITM (Variable Editor) but works in Service Portal

Ankit Balapure
Tera Contributor

Hi,

I’m facing an issue with dynamically updating a Rich Text Label in RITM and SC Task forms.

I am using the g_form.setLabelOf() method to update the label text dynamically. It works as expected in the Service Portal, but it is not working at the RITM and SC Task level in the platform UI.

Also, I would like to avoid any DOM manipulation-based solution, as DOM manipulation is not used or supported in our organization.

Could anyone please suggest if there is any supported or recommended solution for this scenario?

Thanks.

6 REPLIES 6

I've never seen someone use a catalog client script to target both the catalog item and the related tables (platform view). I didn't even know that was possible (which is why it might not be working for you).

 

I would recommend you use the catalog client script for your service portal catalog item, and then a separate client script on both the RITM and SCTASK table. Therefore, you'd have 3 client scripts total. You can use g_scratchpad to pass through server-side values.

@Ankit Balapure 

I just checked and it doesn't work on RITM

I believe reason being the Rich Text label just shows the HTML info

Looks like OOTB platform behavior

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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