I am trying to: please watch this video I recorded: hidden link
Link to a page where the issue can be seen: hidden link
I expected to see: Expected the coditional output to work as the article showed
Instead, I got: not working
Hi, Toolset's conditional HTML feature isn't designed to respond to the filters selected in a View. It's designed to respond to the properties of some post, like the current post or the current post in a loop. What you're trying to accomplish is a filter display dependency. Unfortunately there's nothing built in to Toolset that does specifically what you're looking for. One thing we do offer is the ability to only show available options for each input. We have more information about this here: https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/
So if none of your posts have a value for Rua Centra RJ AND have the value "Centro" selected for Bairro RJ, then the Rua Centra RJ field will be hidden or disabled since there are no matching results.
Another option is to use your own custom JavaScript to show or hide the input field manually. We do not have a JavaScript API for filter interactions, but we do provide some event handlers you can use to respond to specific search and pagination events. In the View editor, find the Search and Pagination panel and open the JS editor panel just below it. Then click "Frontend Events" button to create your own event hooks. They can fire when pagination is complete, or when the search filters are updated, or when the search results are updated, for example.
I recorded: hidden link
Unfortunately there's nothing built in to Toolset that does specifically what you're looking for.
why does the conditional output work now?
why does the conditional output work now?
I can't say for sure. You might find certain cases where it does seem to work, but then stops working unexpectedly. Other cases might not work at all, and it won't be obvious why. My recommendation is to avoid using conditional HTML in the filter area.
Shouldn't you ask the programmers why this happens? Shouldn't they fix it, so it's not buggy?
Also this happened: hidden link
The developers will not address issues that arise from misuse of the system. This is a misuse of conditional HTML, and it's not going to work like you expect it to work in any consistent manner.
So what is the correct usage of this conditional output function on Search and Pagination? There is a button there, so I am assuming it is used for something, right? I would like to know how to use it please.
Don't use it. This is what I'm trying to tell you. It's buggy and you shouldn't use it for ANY reason.
My issue is resolved now. Thank you!