Is it Possible to insert a UI Page Inside a Form as a Section and Capabilities of UI Macro - UI Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 11:48 AM
Hi, I had Designed an UI Page , which obouviusly has a HTML Field and a Client script connected to it, its working as expected. Now I need that UI Page on a Record Form as a Section
So I Created a UI Macro , which has only HTML/XML Field.
I tried to Put all of my UI Page Code in it , For Client Script Part I had Written a <script> tag and Placed inside of it.
But when i try to save it its showing some syntax or markup errors.
I dont understand the same code is working fine in UI Page but when placed inside a macro, its showing errors.
My Idea is to Place that entire UI as a Part of Form Under a Section , So I created this Macro and a Formatter and Placed it inside a Form.
My Question is , Is this even possible that UI Macros Serve all the Purposes that UI Page can FullFill?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 12:54 PM
Hello @Sai kumar123
Refer this doc - UI Macros Secnario's - ServiceNow Community
It shows how you can call UI Macro inside UI page. They both are different things and serve different purposes. Can you share some scripts of what was your requirement ?
Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket.
Regards,
Shivalika
My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194
My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY