Trying to Customize the Inherent Assesment UI Page for Domain Separated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 02:14 AM
Hi Team,
Currently I am working on a requirement where customer wants to hide some fields on the OOTB UI Page (Name of the UI Page: advanced_assessment) like Qualitative Score, Qualitative weight and other fields. I knew this layout is generated through UI page (UI Page componenet is not domain separated ). As we are in domain separated instance, I cannot simply go and hide the below html section in UI page as it would impact other customer instance as well.
I am trying to hide based on the domain value adjusted with the current record. But I could not able to get current record sys id in the UI Page. Right now, OOTB they are not calling this UI page from any UI action. even if I use RP.getParameterValue('sys_id') it returns the UI page sysid and not the current advanced risk assessment record sysid.
Any idea is appreciated.
Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 02:42 AM
you cannot use current.sysId I believe
How is this UI page invoked then?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 03:48 AM
In the form layout, they have placed fomatter and that is tagged to UI macro and in UI Macro they are calling this UI page.
Thanks @Ankur Bawiskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 03:52 AM
then try to get the URL and see if you could retrieve the sys_id and then query the record and get the group value
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
11-13-2023 04:41 AM
Hi @Ankur Bawiskar ,
Below are the details, Could you please tell me how I need to pass sys_id from UI Macro to UI Page.
Form Layout:
UI Macro:
UI Page: