We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Empty Drop-down List Option

Development and Programming

james Brown's avatar
james Brown
492 posts
16 years ago
james Brown's avatar james Brown

right… but this misses the point of the extension. what this extension actually solved was the following scenario:

you have a required drop down field. you want the initial state to be NULL (but have a visible label). you want an EE error to fire if they have not made a selection. this makes sure that the users actually select something and don’t use the default value.

       
thinkinglucky's avatar
thinkinglucky
34 posts
16 years ago
thinkinglucky's avatar thinkinglucky

Hi there This extension would get me out of a big hole right now. Anyone getting it working with the latest release of 1.6.7?

Many Thanks Matt

       
mhulse's avatar
mhulse
329 posts
16 years ago
mhulse's avatar mhulse

I am using 1.6.4, and I can’t seem to get it to work… What version is this targeted for?

       
GDmac - expocom's avatar
GDmac - expocom
350 posts
16 years ago
GDmac - expocom's avatar GDmac - expocom

You can use the ‘Sarge’ extension by Brandon Kelly for this. The ‘Sarge’ extension allows the use of “label=value” pairs, so you can have: - Please select one… = - i like green = green - i like red = red

The “Please select one..=” option has an empty value so that it automagically, if the field is required, generates the notice (as an added bonus to label=value, the extension also supports [optgroup] grouping 😊 )

EE-forum thread: http://ellislab.com/forums/viewthread/75923/ Info and download page: http://brandon-kelly.com/apps/sarge/

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.