Hello,
I have a view (legacy view) with a drop-down filter (front-end) for the selection of an organization, based on passing an url-parameter. I don't want that users can select the 'All' option of the drop down filter. How can I disable this option in drop-down filter, so that it is not displayed to users? I don't want to use another default value, I just want to eliminate this 'All' option.
Kind regards
Franz
Tell us what you are trying to do?
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site?
Hello,
It needs custom codes, for example:
1) you can try to use JS codes to remove the default "All" options from dropdown:
https://stackoverflow.com/questions/12932959/remove-values-from-select-list-based-on-condition
2) and add setup the default filter value for "organization" field with Views filter hook "wpv_filter_query"
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
My issue is resolved now. Thank you!