Skip to:
Content
Pages
Categories
Search
Top
Bottom

creating a placeholder on drop down lists on profiles

  • Profile photo of haykayltduk
    haykayltduk
    Participant

    @haykayltduk

    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

    p.s. also created in trac http://buddypress.trac.wordpress.org/ticket/5184

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘creating a placeholder on drop down lists on profiles’ is closed to new replies.
Skip to toolbar