The CreatorCon Call for Content is officially open! Get started here.

Trying to Customize the Inherent Assesment UI Page for Domain Separated

PrakashRam
Tera Contributor

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.

 

PrakashRam_0-1699870121568.png

 

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.

 

PrakashRam_1-1699870280537.png

@Ankur Bawiskar 

 

Any idea is appreciated.

 

Thanks in Advance.

 

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@PrakashRam 

you cannot use current.sysId I believe

How is this UI page invoked then?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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 

@PrakashRam 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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: 

PrakashRam_1-1699879181168.png

 

UI Macro:

PrakashRam_0-1699879145730.png

 

UI Page:

PrakashRam_2-1699879241215.png