How to make changes in condition od UI Action present on "kb_view"

Yogita11_
Tera Contributor

Hello All,

As shown in the attached screenshot, I need to make the 'Edit' button conditional or restricted in its visibility. Specifically, I want this button to be visible only to users who are members of a specific 'Group' (which is a custom field we have).

Could anyone please assist me in locating the "Edit" button and code or configuration for this (This button is not present in UI Action).

Yogita11__0-1748870788294.png

 

 

2 ACCEPTED SOLUTIONS

SANDEEP DUTTA
Tera Patron
Tera Patron

Hi @Yogita11_ ,

Edit button rendered in the ui macro "kb_view_common_header_toolbar" and it is called by the ui macro "kb_view_common" which is called by the ui page "kb_view".

 

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@Yogita11_ 

you will have to check the UI macro code and then make the changes accordingly. details are already shared by @SANDEEP DUTTA 

But remember I will suggest to avoid updating the OOTB ui macro etc

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

View solution in original post

2 REPLIES 2

SANDEEP DUTTA
Tera Patron
Tera Patron

Hi @Yogita11_ ,

Edit button rendered in the ui macro "kb_view_common_header_toolbar" and it is called by the ui macro "kb_view_common" which is called by the ui page "kb_view".

 

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.

Ankur Bawiskar
Tera Patron
Tera Patron

@Yogita11_ 

you will have to check the UI macro code and then make the changes accordingly. details are already shared by @SANDEEP DUTTA 

But remember I will suggest to avoid updating the OOTB ui macro etc

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