All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Search a multi select custom field

peter e 1 Feb 2017 15:57 question, rejected

I realize this is probably a simple question but I cannot find any examples in the docs.

I have a channel with a multi select custom field.
How do I build a low search form that will display these multi selections as searchable. Thinking of a set of checkboxes that are displayed based on the options in the custom field.

When I try

{exp:low_search:form query="{segment_3}"}
{exp:low_options:member_craft_type}
{options}
<label>
<input type="checkbox" name="search:member_craft_type[]" value="{option:value}"
{if low_search_search:member_craft_type ~ '/(^|\|)'.option:value.'(\||$)/'} checked{/if}>
{option:label}
</label>
{/options}
{/exp:low_options:member_craft_type}
<button type="submit">Go</button>
{/exp:low_search:form}


I get this error:

Error

The following tag has a syntax error:

{exp:low_options:member_craft_type}

Please correct the syntax in your template.

Replies

  1. peter e 1 Feb 2017 16:05

    STUPID didn't install LOW OPTIONS