How to hide the certain Widget based on page in Service Portal.

HR Rajashekar
Mega Expert

Hi All,

We have requirement where a portal page contains Bookmark widget which is required for displaying few table records but I wanted to hide it ifor one of custom table.

ie... I want to hide that widget for one of custom table to display only records not bookmark.

Could any one help me out with this.

 

1 ACCEPTED SOLUTION

HR Rajashekar
Mega Expert

Eventually i have tried to display page based on table and its works 

 

Html code: <div ng-if="data.tablename!='sc_req_item'">

Server code: data.tablename= $sp.getParameter('table');

View solution in original post

3 REPLIES 3

Pratiksha Kalam
Kilo Sage

Hi,

you can use below line to hide,

Which widget do you want to hide? You have to edit that widget, some widget dont even show up if there is not data to be displayed, where we coded.

  ng-show="data.flag" and my server script set it to true if data and false if no data.

 

If my reply helps you at all, I’d really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click both the Helpful and Accepted Solution buttons!

HI Pratiksha,

 

Thank you for your reply.

I want to make it visible based page. Looking for more on it.

HR Rajashekar
Mega Expert

Eventually i have tried to display page based on table and its works 

 

Html code: <div ng-if="data.tablename!='sc_req_item'">

Server code: data.tablename= $sp.getParameter('table');