Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Placeholder for pulldown fieldtype #10

Open
benedictdudel opened this issue Apr 5, 2016 · 1 comment
Open

Placeholder for pulldown fieldtype #10

benedictdudel opened this issue Apr 5, 2016 · 1 comment

Comments

@benedictdudel
Copy link
Contributor

Hey,

woulde be nice if the pulldown-fieldtype would support placeholder. Something like:

<select>
    <option value="" disabled selected>My Placeholder</option>
    <option value="2" >Option 2</option>
    <option value="3" >Option 3</option>
    <option value="4" >Option 4</option>
</select>

Now you can add a new item and stick it on the top of list. But the user would still be able to submit the placeholder value.

@malles
Copy link
Member

malles commented Apr 5, 2016

If you place an option with empty value as first option (move option to top before setting value to ''!), and you make the field required, the user will not be able to submit the "placeholder". Use the unlink icon to deattach the value from the label.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants