How to display UI macro in service portal catalog form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019 08:44 PM
HI All,
I have created the Button in UI macro and i am trying to use that UI macro in catalog variable
that ui macro is displaying fine in ServiceNow catalog form but its not displaying in service portal view
Please help me to resolve this issue
ServiceNow view
Service Portal view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019 08:59 PM
Hi Ramesh,
Service Portal doesn't actually support any jelly, so any ui macro variables you have or ui pages incorporated into catalog items wouldn't render. It's actually not using the catalog ui pages at all. Service Portal is a complete visual layer between the ServiceNow data and the user, so what it's doing in the catalog is grabbing all of your variables and policies and then rendering them.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019 10:12 PM
Hi Ramesh,
Can you share the code within UI macro that creates this button?
What is the purpose of the button?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019 10:30 PM
Hello Ramesh,
UI Macros and UI pages are based on Jelly... Service Portal is a Jelly free environment and as such Ui Macros and Ui Pages will not render in the Service Portal.
Macro variables will not display on Service Portal without a macro widget
Solution:
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2020 04:27 AM
Hello Ramesh,
Did you get the solution for this, i am also facing the same issue.
Thanks and Regards,
Prerana
Widgets only display on service portal for the "back-end" you still need a macro. Here is a screenshot of a couple macro variables with macros and widgets associated to it to accommodate both environments.
Create a widget and add it to your macro variable:
Check out this article for understanding:
https://community.servicenow.com/community?id=community_blog&sys_id=df9ceee1dbd0dbc01dcaf3231f9619c8
Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade