- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2019 01:59 PM
Is there any way to show the value of an HTML field properly when it's delivered in a pop-up that shows a UI page?
Right now any HTML comes across as regular text and isn't translated in the XML of the UI Page.
See here for reference: https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/script/client_scripts/reference/r...
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2019 03:44 PM
Hi Shane,
Here's an example of how you can get the values using client script in a UI Page Preview and set the values in the page content.
In the above script, in the Client script section, you'll see that GlideForm,i.e., g_form methods are used to access the value of "short_description". I have included comments to give you an idea of the purpose of those statements.
The values accessed using g_form methods are then set in the UI Page content using DOM Methods (it is not going to get impacted by any upgrade as it is your own HTML code, which is not going to change its document structure).
So, here is the incident form where I tried previewing the UI Page:
And here is the preview result using the UI Page:
This implementation got the results from the client side of the form, not the server side. So you'll get the current values even if they're not yet saved.
Hope this helps!
Cheers,
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 06:53 AM
This is working, thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 03:15 PM
No worries. Glad that it worked 🙂
Cheers,
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 02:44 PM
I am having same issue with a ui page. I have that annoying <p> showing up with my text, how do I remove/hide the <p>. Any pointers please, I appreciate it