[buddypress-trac] [BuddyPress] #5184: creating a placeholder on drop down lists on profiles
buddypress-trac
noreply at wordpress.org
Thu Sep 26 16:04:38 UTC 2013
#5184: creating a placeholder on drop down lists on profiles
-------------------------+-----------------------------
Reporter: haykayltduk | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
Hi,
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?
Thanks,
Anand
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5184>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list