Hide a widget on Service Portal

maryc
Tera Contributor

Hi,

How to hide a widget on Service Portal when no data is available?

Thanks

 

1 ACCEPTED SOLUTION

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,


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. For example : I used ng-show="data.flag" and my server script set it to true if data and false if no data.


Thanks,
Ashutosh

View solution in original post

3 REPLIES 3

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,


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. For example : I used ng-show="data.flag" and my server script set it to true if data and false if no data.


Thanks,
Ashutosh

I am working on the announcement widget

How does your HTML code look for the ng-show="data.flag" you are talking about? I am newish to scripts/HTML, and I'm not sure how to code the server script to set it to true if data and false if no data. Thank you!