How to hide/remove related links in form

Damo Dharan
Giga Contributor

Hi all,

           I have created custom menu with some modules and each modules have custom form view. I want to hide/remove related links in custom form view except the person with admin role.

1 ACCEPTED SOLUTION

@Damo Dharan 

You can hide the UI Actions based on views

Using include or exclude

UI action visibility

find_real_file.png

Regards
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Damo Dharan

Related links are UI actions and UI actions are shown/hidden as per evaluation of condition.

If you wish to show/hide the UI Action from script then you would require DOM manipulation which is not good practice.

Refer below link

Hiding UI action based on conditions

Regards
Ankur

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

@Damo Dharan 

You can hide the UI Actions based on views

Using include or exclude

UI action visibility

find_real_file.png

Regards
Ankur

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

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You can use the "UI Action Visibility" and "Requires role".

Have you had a look at that? All configuration and no code.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn