How to lock down breadcrumbs and filters in Service portal widget

Gopi22
Giga Guru

HI,

I have placed a clone of 'Data table from Instance definition' widget in one of our sp page. 

We have a requirement where in the user should not be able to edit the initial conditions in breadcrumbs/filters. 

Please find below screenshot, the filter condition marked in yellow, the user should not edit/remove those but should be able to edit/remove other conditions which are added after that. 

find_real_file.png

Please let me know if there is a way to lock down the first 2 conditions in the breadcrumbs filter. 

Thanks & Regards,

Gopi

1 ACCEPTED SOLUTION

ServiceNow Tec2
Mega Sage
This has been resolved by ServiceNow Technical Support. Please refer to KB0832537 (HI login required) for more information.

View solution in original post

3 REPLIES 3

brianrichards
Tera Guru

I see that your question has been out there for a while without any responses. I do not have a complete solution, but I can offer a bit of an approach.

First of all, based on the screenshot I can observe that what you are asking seems odd, as the user does not have access to the actual filter, but instead just sees the filter breadcrumbs. I can't address the issue of adding a filter for end users here (although it's all in the Data Table widget), but I can speak to the issue of disabling part of that breadcrumb trail.

The approach would be as follows:

  1. Identify how many 'items' in the breadcrumb trail you are going to target. If it is static (such as 1 or 2), then things are a bit easier. If not, things get more complex.
  2. Target the first 1, 2, or whatever items in the breadcrumb trail using CSS nth-child selectors.
  3. The make the link not a link by using more CSS magic.

This is clearly not a complete solution, but it's one approach. Good luck!

jxsaxton421
Tera Guru

There is an additional community article where the breadcrumbs can be removed. Since you cloned the widget you could add the CSS there to hide breadcrumbs. However, I have found that adding it on the page usually works for corrective action.

ServiceNow Tec2
Mega Sage
This has been resolved by ServiceNow Technical Support. Please refer to KB0832537 (HI login required) for more information.