We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Remove few attributes from widgets while using it for in variable of catalog item

PratikshaK17855
Mega Contributor

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.

PratikshaK17855_1-1784566257443.png



Thanks.
Pratiksha

 

2 REPLIES 2

Tanushree Maiti
Tera Patron

Hi @PratikshaK17855 

 

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.

 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

marianbruma
Tera Contributor

Hi @PratikshaK17855 

 

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:

https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-edit-sn-filter-widget-in-th...

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:

https://www.servicenow.com/community/employee-center-forum/extended-operators-in-sn-desktop-filter-w...

 

Hope it helps,