Hi,
im trying to show simple Text in filter-editor if field is not empty. Like:
[wpv-control-postmeta field="wpcf-myfield" type="checkboxes" url_param="wpv-wpcf-myfield"]
[wpv-conditional if="( $(wpcf-myfield) ne '' )"]<div class="zikb"> Zi/K/B</div>[/wpv-conditional]
is this not possible?
Thx for an answer - best regard alex
Hi, at this time we do not offer the ability to change View filters automatically based on the values of other View filters. This type of modification would require custom JavaScript code that falls outside the scope of the support we provide here in the forums, unfortunately. We do offer a portal where you can connect with skilled developers who may be able to assist with this project: https://toolset.com/contractors
Hey,
it dont wanna changed based on the values of other View filters - i wanna show some simple text in Filtersection if some Values of CPT not empty.. - This is not possible too?
In these while i put some text based on a div around the filter - if the div empty i put some some css content:""; with :empty in the div - its a workaround i dont wanna use.. 😉
best regards - alex
Yes, it is possible to use conditionals in the Filter Editor panel, but the conditionals must refer to the current post or current page, not one of the results of the View. The code you included above:
[wpv-conditional if="( $(wpcf-myfield) ne '' )"]<div class="zikb"> Zi/K/B</div>[/wpv-conditional]
In this case, "myfield" refers to a custom field on the current post or current page. It does not refer to a custom field on one of the results of the View. Where is this View placed, and what types of posts does it query? Where is the custom field "myfield"?