creating a placeholder on drop down lists on profiles
If you add a field to the registration profile which is a drop-down list and you would like the first item to be ‘Please select an option’ *and* you mark the field as required, users do not have to do anything.
They are not forced to ‘select an option’.
This is because when generating the HTML <option> code, a value is placed there. If, instead, the value was set to “”, then this feature code work.
Look through the code, there is already the notion of ‘is default’. I have a patch which adds the notion of ‘is placeholder’.
Is this wanted in the core?
p.s. also created in trac http://buddypress.trac.wordpress.org/ticket/5184
- The topic ‘creating a placeholder on drop down lists on profiles’ is closed to new replies.