Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Hide the "Data table from instance defination" widget when there is no record

absd
Mega Contributor

I have created a widget in service portal using the OOB widget "Data table from instance defination".  Please find the filter which i have used for the same. find_real_file.png

However, when there is no matching records  i Get this

 find_real_file.pngSo, now i want that this widget to be hiden when there is no matching records as per the result.

can the everhelpful community help me out with this.

 

Thanks in advance

1 ACCEPTED SOLUTION

Raghav Sharma24
Giga Patron

Add the below code in your custom widget to maker  this work

 

Server side:

find_real_file.png

 

HTML:

add ng-if

find_real_file.png

View solution in original post

2 REPLIES 2

Raghav Sharma24
Giga Patron

Add the below code in your custom widget to maker  this work

 

Server side:

find_real_file.png

 

HTML:

add ng-if

find_real_file.png

Thanks Raghav that worked like a charm...