UI page client script building HTML and pass it UI Page Div not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 10:10 PM - edited 12-22-2024 08:52 PM
Hello All,
I want to create pop message in which I am using a UI page.
from this client script I am getting messages in html but its not displaying in UI Page
var body = gel("modal_body");
body.innerHTML = message;
This not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 11:01 PM
try this
var body = gel("modal_body");
body.innerText
= message;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2024 08:53 PM
I was not getting the message as string interpolation was not supporting in ServiceNow. When I used for loop it worked