Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

need to change rich text label value on change of script

priyanka chodip
Tera Contributor

Hi There,

i have a rich text field and it should populate only when variable erg is selected.
also that rich text should have the selected erg value in it and then populate but its working. i have tried on change client scripts but the result is nill.

priyankachodip_1-1759224891371.png

 



priyankachodip_0-1759224675043.png
please let me know if anyone has any idea how to crack it.

Thankyou
Priyanka.

 

1 ACCEPTED SOLUTION

@priyanka chodip 

You can't set content within Rich Text Label as it's a static content.

you should not use Rich Text Label variable to show/render HTML content.

Please use HTML variable type and then your onChange will show/render the HTML content.

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

View solution in original post

5 REPLIES 5

@priyanka chodip 

You can't set content within Rich Text Label as it's a static content.

you should not use Rich Text Label variable to show/render HTML content.

Please use HTML variable type and then your onChange will show/render the HTML content.

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