creating a placeholder on drop down lists on profiles
|Reported by:||haykayltduk||Owned by:|
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?
Change History (17)
- Component changed from Core to XProfile
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release