Skip to content

Default "Please select..." style option for select fields. #55

Open
@smartredfox

Description

@smartredfox

I would like an example that demonstrates:

How to set a default option for select fields that doesn't pass validation - basically an option with the value set to an empty string/null etc. I think this is a regular feature where the user is prompted to "please select..." but I can't find any way of doing it.

I've tried to figure this out, but seem to be getting nowhere. If it makes any difference I'm loading the values from an ajax call and filling them. When the first option has an empty string value it adds an extra option before it like this:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions