UI page in form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 01:39 AM
How to embed an UI page in a form view (or in a section)?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 03:45 AM
Hi Krishna,
UI Macros and UI Pages both use the same XML/Jelly/JS syntax with UI Pages making a distinction between HTML, client and processing scripts for ease of use. You can actually just put all of these scripts in the HTML section; this works fine. The main difference is, a UI Macro must be included somewhere; you can't post an action to a UI macro on it's own.
The OOB layout might be limiting in some ways but it's designed to be easy to use for non-programmers (personally, I think it's pretty flexible for 95% of the time) and this is the core reason ServiceNow is so powerful. Bear this in mind when considering what you are building, always build everything for the next person. If it is difficult for you to build just imagine how difficult it will be for someone other than you to debug, fix and maintain it.
You might find more help if you can explain what it is that you are trying to do that requires such 'dynamic' capabilities. It will be a tool or a specific data view, or based on some other arbitrary idea that doesn't fit the standard record-form model.
Reference Link: Click here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 09:28 AM
Thanks Gaurav. Can you please share any samples on how to do it? By HTML, do yo mean the HTML editor field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 04:54 AM
HI Krishna,
You can have UI page using UI action(button) as well .
Please have a look:
GlideDialogWindow API Reference - ServiceNow Wiki