Tell us what you are trying to do?
Hello, I'm creating a custom search view in blocks in my page. I have worked with views with the legacy plugin, but in this case I'm using Blocks. I need to generate the code or the setting to show empty results in the view output until I insert the searching criteria in the custom search fields.
Is there any documentation that you are following?
I found information about code snippet but it doesn't work.
Is there a similar example that we can see?
Hello. Thank you for contacting the Toolset support.
The link you shared I do not see the view as it seems I might require login to access that page.
However, if you do not want to display any results under until the search is performed, you will require to use the view's filter hook: wpv_filter_query
Hello Minesh
Thanks a lot for your response. Normally with views, the ID was in the views log. But in this case (in block) there is no an ID and there is no log. I put a number in an ID field in the edition menu but it didn’t work. How can I do in this case??
To check or know the view number/ID you can enable the legacy version of the views and then navigate to Toolset => Views and then locate your view and you will see the ID there.