ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Custom drop-down field with an empty value

December 09, 2010 2:51pm

Subscribe [2]
  • #1 / Dec 09, 2010 2:51pm

    atiosis

    180 posts

    Hello.

    I am trying to add a new field to my publish form.  It needs to be a drop-down menu with 2 values and an empty option.
    The idea is to make this drop-down a required field and have the empty option as default;  if the user leaves this field empty, the publish form will force the user to select one of the 2 values.

    Is this possible to do? How?

    Thanks a lot.

    Atiosis

  • #2 / Dec 10, 2010 8:41am

    Sue Crocker

    26054 posts

    Hi, Atiosis. You’d need to manually create a SAEF and hard code the values for this to work. Blank lines are removed when adding the drop down list type. Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases