Hi there,
On this test page we have a selection of check boxes we are testing out as part of a filtered search:
hidden link
Is there a way of making it that only one check box can be selected in each group?
I have seen this asked before and the blow was given as a solution however my code looks different to what was shown:
https://stackoverflow.com/questions/19001844/how-to-limit-the-number-of-selected-checkboxes
I have the below code in the Views > Search and Pagination area...
<div class="form-group">
<label>[wpml-string context="wpv-views"]Guests[/wpml-string]</label>
[wpv-control-post-taxonomy taxonomy="guests" type="checkboxes" url_param="wpv-guests"]
</div>
<div class="form-group">
<label>[wpml-string context="wpv-views"]Collections[/wpml-string]</label>
[wpv-control-post-taxonomy taxonomy="collection" type="checkboxes" url_param="wpv-collection"]
</div>
<div class="form-group">
<label>[wpml-string context="wpv-views"]Pets[/wpml-string]</label>
[wpv-control-post-taxonomy taxonomy="pet" type="select" default_label="Any" url_param="wpv-pet"]
</div>
<div class="form-group">
<label>[wpml-string context="wpv-views"]Area[/wpml-string]</label>
[wpv-control-post-taxonomy taxonomy="area" type="select" default_label="Any" url_param="wpv-area"]
</div>