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

Support archive

How to display channel field options to use as search criteria

Wayne 29 Jan 2018 12:11 question, complete

Hi, I'm trying to create a form that will seach using fields assigned to a channel.

EE version: 4.08
Low search: 6.0.0

Field details

field type: radio buttons
field name: core
options: option 1, option 2, option 3

I'l like to add this to my search form so that if I add a new option it will be added to the form.

I've tried using low options, code below but nothing is showing

{exp:low_options:core}
{options}
<label>
<input type="radio" name="core" value="{option:value}" {if low_search_search:core ~ '/(^|\|)'.option:value.'(\||$)/'} checked{/if}> {option:label}
</label>
{/options}
{/exp:low_options:core}


Is there a way to dynamically create a list for fields?

Thanks

Wayne.

Replies

  1. Low 29 Jan 2018 16:58

    Yes, possible. You've got the name-attribute for the radio buttons wrong, tho. That should be search:core if 'core' is the name of the field you're targeting.

    Does the "nothing is showing" apply to the Low Options tag or Low Search tag?

  2. Wayne 30 Jan 2018 11:04

    The Low Options tag isn't display the radio buttons.

  3. Wayne 1 Feb 2018 11:09

    Is low options compatible with EE 4.0.8?

    I'm unable to get any options to show.

    Thanks

    Wayne.

  4. Low 1 Feb 2018 11:10

    I'm getting options in my EE4 installation, so I can't replicate your issue here.

    So I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.

  5. Wayne 1 Feb 2018 11:38

    Hi, Just sent you an email with login details.

  6. Low 1 Feb 2018 13:06

    Ah. EE4 sets the site_id for new fields to 0, which Low Options didn't account for. I've pushed an update to Github, so try and download the new version to see if that helps.

  7. Wayne 1 Feb 2018 13:33

    Fantastic, work now.

    Thanks for your help.