We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

GlideModal not rendering HTML portion (article body) of KB Article

Daniel Hong
Tera Contributor

Hello, I am pretty new to UI Macros and GlideModal.
I recently did some research on it and there was not enough information or documentation on this. I am trying to render KB article but seems like render() method is not capable of rendering HTML, but with renderWithContent() method, you have to manually add the code in there. I was wondering if there is a way to fetch the article body into a variable inside the macro and pass it into the GlideModal renderWithConetent() method. 

1 REPLY 1

Omkar Mone
Mega Sage

Can you help with the current version of code so we can help you further?