I am looking to do a search of a few Zoo Visitor fields that are comprised of checkboxes. This was something I was working on a few months ago and I picked this project back up this week. I am having two different issues and I'm not sure if they are Zoo Visitor or Low Search issues so I figured I would post here to start.
The first issue has to do with the checkboxes themselves. I have three checkbox fields with anywhere from 10 to 50 options. Each option is listed on its own line as specified in "Multi-Select Options" within the channel field settings. A few of the options have commas in them and I'm not sure if that's an issue.
When I go to display these fields within my search, the checkbox fields all behave in very strange ways. All the fields in the low search form follow the same format every time:
<fieldset>
<legend>Fieldname</legend>
<div>
<span class="label"></span>
<div class="group">
{exp:channel:entries
site="default_site"
channel="zoo_visitor"
status="not closed"
disable="categories|pagination"
}
{mbr_fieldname}
<input type="checkbox" name="{item}" value="" /> {item}<br /><br />
{/mbr_fieldname}
{/exp:channel:entries}
</div>
</div>
</fieldset>
For two of these fields, some of the checkboxes being displayed have multiple values combined into one value. That is, instead of there being two separate checkboxes for Value 1 and Value 2, one checkbox will contain BOTH Value 1 and Value 2 together. Another one of these fields has multiples of the same value wjthin the list. For example, Value 3 might show up twice for no apparent reason. These values are also not in the order listed when I created the field. I even checked in the database and all the data looks to match what I entered properly the first time. To test this issue further, I created a new checkbox field this evening called testcheckboxes. When I tried to display this new field like so:
{exp:channel:entries
site="default_site"
channel="zoo_visitor"
status="not closed"
disable="categories|pagination"
}
{testcheckboxes}
<input type="checkbox" name="{item}" value="" /> {item}<br /><br />
{/testcheckboxes}
{/exp:channel:entries}
No entries show up whatsoever.
The second issue has to do with the checkboxes that DO show up. If I try to check off any of these boxes and search, no member results are found even if I know a particular member has these boxes checked off. The checkbox fields are marked as searchable and the results page has a status="not closed".
I'm hoping to be able to unravel this problem soon but I'm really not sure where to go from here. Any help would be greatly appreciated. Thank you.