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

Support archive

Getting no output with low options

Ross Hulford 12 Mar 2014 11:08 question, complete

Hi,

I am trying to use low options (in my low search) and I cannot get any output.

Using

{exp:low_options:area}{options}<option value="{option:value}">{option:label}</option{/options}{/exp:low_options:area}


my custom field is area and my channel is vacancies.

Does it have to be in a form field to get any output?

Replies

  1. Low 12 Mar 2014 11:14

    What are your EE, Low Options and PHP versions?
    Which type is the area field?

  2. Ross Hulford 12 Mar 2014 11:20

    Hi,

    Thanks for the quick reply,

    EE v2.7.3
    php - v5.5.3

    it is a standard EE select dropdown, attached are the options.

  3. Low 12 Mar 2014 11:32

    Can't seem to replicate. What's the Low Options version? And can you share the full template code? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

  4. Ross Hulford 12 Mar 2014 11:47

    http://pastie.org/8911173

  5. Low 12 Mar 2014 12:06

    You might want to put those option-elements inside a select-element.

    <select> 
    {exp:low_options:area}
    {options}<option value="{option:value}">{option:label}</option>{/options}
    {/exp:low_options:area}
    </select>

  6. Ross Hulford 12 Mar 2014 12:12

    sorry, I thought it would just output the options in a loop as html.

    Thanks for the help.

  7. Low 12 Mar 2014 12:14

    It does, but the example code has the <options>, as that's what people use it for most. Here's a "raw" example, without HTML:

    {exp:low_options:area} 
    {options}
    {option:label}
    {/options}
    {/exp:low_options:area}