Want ability to set placeholder text separately from label in fields
See original GitHub issueCurrently blocks contain only a label
field, which renders to the field label and placeholder text. Ideally I’d like to set the placeholder text separately.
For instance, say I have an email field. I’d want it to be:
label: Email
placeholder: you@example.com
This helps guide the user on the sort of content they need to enter into the field.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:5
- Comments:18 (14 by maintainers)
Top Results From Across the Web
Is there anyway to place the placeholder text above the input ...
Move the <input /> inside of the <label /> and display: block; it. If you want to separately style the text, wrap it...
Read more >Placeholder Research - Low Vision Accessibility Task Force
Solution 2: Programmatic label that appears like a placeholder: In this method the programmatic label is visually displayed as a placeholder. When user...
Read more >Is it possible to change placeholder text of registration form ...
I only want to change the placeholder. I saw two separate entries for the “Password Confirmation” field, one was for the field label...
Read more >Placeholders in Form Fields Are Harmful
Labels tell users what information belongs in a given form field and are usually positioned outside the form field. Placeholder text ...
Read more >Styling Placeholder Text with CSS | SamanthaMing.com
Use the ::placeholder pseudo-element to style your placeholder text in an <input> or <textarea> form element. Most modern browsers support this, but for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve not done a PR before, nor worked with rst doc but I’ve given it a go here: forked repo / pull request #6309
Let me know if I should put it somewhere else or make any changes.
For anyone ending up here trying to figure out how to add a simple placeholder to a field in Wagtail’s admin view, and end up scratching their heads, it’s actually quite easy. Say you’ve made a soldier model that content creators will use, and you want to put a placeholder in the field, just do something like this:
You can select from the widgets here, plus whatever you find in wagtail\admin\widgets.py