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

Hide breadcrumb Service Portal widget "Data Table from Instance Definition"

Mark Roethof
Tera Patron
Tera Patron

Hi all,

I'm struggling a bit with the configuration of a Service Portal widget. Feels like I'm just overlooking something really simple... though what 🙂

What I'm after... A page with Service Portal widget "Data Table from Instance Definition" and hiding the actual breadcrumb.

Now it looks like:

find_real_file.png

 

I tried adding below code to the Additional options of the sp_instance_table record. Added this because the inspector shows a options.show_breadcrumbs.

find_real_file.png

find_real_file.png

 

Somehow still, the breadcrumb is not hidden 😞 Any thoughts on what I missed here?

Obviously, I could hide the breadcrumb through CSS on the sp_instance_table (and works instantly with below). Though, if possible I would like to hide the breadcrumb through the options.show_breadcrums.

find_real_file.png

 

Any thoughts on this?

 

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Ended up just applying the CSS "workaround":

Obviously, I could hide the breadcrumb through CSS on the sp_instance_table (and works instantly with below). 

image

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

View solution in original post

5 REPLIES 5

DB1
Tera Contributor

Hi All,

I was using a cloned widget to hide breadcrumbs with the below code:

var widgetParams = {
table: data.table,
fields: data.field_list,
o: data.o,
d: data.d,
filter: data.filter,
window_size: data.window_size,
view: 'sp',
title: options.title,
show_breadcrumbs: false, //set filter option or bread crumbs visible false.
show_keywords: true
};

 

But is there a way that it can be set to true or false based on specific page id

example - if(pageid =='My inc'){

showbreadcrumb = true

 

}

else

{

false

}