HTML type variables are not shown in 'sc-variable-summarizer' widget in Service Portal

Hanumanthrao
Tera Contributor

I'm facing an issue in ServiceNow. I've created a service catalog item with a variable named "work_description" of type HTML. After entering "Happy" as the variable value, it displays correctly. However, when I use this value to populate the description field in the backend form, it shows as "<p>Happy</p>" instead of just "Happy". The same issue occurs in the portal as well. I want to display the value as "Happy" without the HTML tags. What should I do?

 

2 REPLIES 2

rakshitadgaonka
Tera Contributor

This is expected behaviour. OOTB some variable types like HTML are not shown on the tickets page. 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0820434

Kieran Anson
Kilo Patron

Hi,

If you want a simple option - use the standard ticket page rather than the 'ticket' page in your screenshot. You can then change the tab configuration by adding a new tab of type custom, and using the widget 'sp-variable-editor'. This comes with the benefit of showing MRVS and HTML fields, as well as allowing them to be editable/read-only

KieranAnson_0-1767094486223.png