cancel
Showing results for 
Search instead for 
Did you mean: 

How can I hide filters in smartFilterBar?

wskaw
Explorer

Hello,

I try to hide one of my filters in smartFilterBar, but I want it under specified conditions. On backend I have a function that checks user's role and returns boolean. Can I somehow do it on a frontend site? I have checked that smartfilterbar does not have such a property. Maybe it is possible to do it with annotations? For example: Name @UI.HiddenFilter:{$If: $value('SRV.isRole("Role-type1")) then"@UI.HiddenFilter" else ""' }.

To sum up, I would like to hide one filter for specified user role, and for other make it visible.

Best Regards,

Wiktor

Accepted Solutions (0)

Answers (0)