I'm using the Filter Widget in an application created with Web AppBuilder 2.11 Developer Edition.
The application needs to set the filter listed dropdown values programmatically from info obtained from the currently logged user.
In the image above I have set up the filter widget to ask for values from a field in a specific layer (Region in this example).
I want to show only a subset of all the regions that the widget shows by default.
Is there a way to specify programmatically the options that the dropdown must show?
Another possible approach to solve my situation is to make the Filter Widget respect the layer definition expression.