Remove few attributes from widgets while using it for in variable of catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Need to remove few attributes from widgets while using it for in variable of catalog item,
I have created custom widget from OOB "SN Desktop Filter " cloned. I want to remove few field from it. Can we remove it for specific requirement.
Thanks.
Pratiksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
See if this solution : How can we use OOB "SN Desktop Filter Widget" in Service Portal works for you.
If not, I guess you have to do it using Read ACL and with ACL role.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
The SN Desktop Filter widget relies on the underlying SN Filter directive, so removing fields from the HTML alone may not be enough. This older Community thread explains the dependency and where the directive is implemented:
If your goal is to hide only specific fields for one catalog item, I'd recommend filtering the field metadata in your cloned widget (or the Script Include/directive that provides it) rather than using CSS. That keeps the customization cleaner and avoids side effects.
There's also a newer example showing how others have extended the SN Desktop Filter safely by cloning it and overriding its behavior instead of modifying the OOB widget:
Hope it helps,