0

I've created Select Dropdown fieldtype and populated it manually. How do I display the select in a channel form?

The EE documentation states: This creates a standard HTML drop-down list.

However when I add the {fieldtype} to my channel form nothing appears.

How do I add the Dropdown to my channel form?

1
  • Can you confirm that the field type has a value stored in it via the CP? Feb 21, 2015 at 16:48

1 Answer 1

1

As per the documentation for displaying select lists in Channel Forms:

If you’re creating a select list, you’ll need to pull in the options, using {options:my_field_name} but otherwise things look pretty similar:

<select name="my_field_name" id="my_field_name">
  {options:my_field_name}
    <option value="{option_value}"{selected}>{option_name}</option>
  {/options:my_field_name}
</select>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.