Dropdown List using Low Freeform Field
Hi Low,
I just love your new Low Freeform Field add-on!
BTW, is there an easy way to implement dropdown list field using this? If there is, I love to hear about it!
Thanks for sharing!
Ryu
Replies
Low 10 Jan 2012 17:00
Not sure what you mean by this. Freeform Field will generate a dropdown in your publish field.
Kim Ryu Hyun 11 Jan 2012 08:46
Hmm... In your sample template you have the following:
{if field_type == 'text'}
{if:elseif field_type == 'textarea'}
{/if}
I like to add 'dropdown' as an field_type besides text and textarea and have an ability to easily manage the select-able content of the dropdown list in your FF filed somehow.
{if field_type == 'dropdown'}
Volvo
Saab
Mercedes
Audi
{/if}
Do I still have to resort to using EE Category for that or perhaps we could put that in your FF field somehow. I don't know.
Thx.
Low 11 Jan 2012 09:58
Low Freeform Field only returns a name of the selected Freeform field, not an array of values. So, if you want to display a list of values on your site using templates, you can't really use Low Freeform Field for that. You'd have to use categories (like you're doing) or some custom thing, like using the Query module.
Kim Ryu Hyun 11 Jan 2012 11:08
I guess I can add another or few Matrix fields for that.
Thx.