Quantcast
Viewing all articles
Browse latest Browse all 20145

conditional fields in filter (Views)

Hello, kindly help to create conditions for fields in filter (Views). I have two fields: "force" and "fire". "fire" field should appear in filter only if fire meaning is selected in "force" field. Content of user field for fire meaning in "force" field is equal 1 in Types. Please help. Code is below. Thank you in advance! Anton

[wpv-filter-start hide="false"]
[wpv-filter-controls]<p>стихии[wpv-control field="force" type="select" auto_fill="wpcf-force" auto_fill_default="" url_param="force"]</p>
<p>огонь[wpv-control field="fire" url_param="fire"]</p>
<p>[wpv-filter-submit name="Применить"]</p>
[/wpv-filter-controls]
[wpv-pagination]
<p>[wpml-string context="wpv-views"]Showing page [wpv-pager-current-page] of [wpv-pager-num-page][/wpml-string] </p>
[/wpv-pagination]
[wpv-filter-end]


Viewing all articles
Browse latest Browse all 20145

Trending Articles