HTML type variables are not shown in 'sc-variable-summarizer' widget in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 09:26 PM
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?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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
