A simple replacement for the default text field with dynamic input text in the placeholder
![]() |
---|
Customized text inside placeholder of text type field |
Use this field plug-in to use customized text in the placeholder of text type field.
For this field plug-in, enter the text for the text
parameter (see Parameters below), and that text will be shown into the field’s placeholder. It can only be used with text field type.
This plug-in was developed based on the baseline-text field-plug-in, therefore, also supports the additional improvements in the baseline-text field-plug-in.
Feature / Property | Support |
---|---|
Supported field type(s) | text |
Default values | Yes |
Custom constraint message | Uses default behavior |
Custom required message | Uses default behavior |
Read only | Yes (shows the current value, if present) |
media:image | Yes |
media:audio | Yes |
media:video | Yes |
number appearance |
Yes |
numbers_decimal appearance |
Yes |
numbers_phone appearance |
Yes |
To use this field plug-in as-is, just download the text-placeholder.fieldplugin.zip file from this repo, and attach it to your form.
To create your own field plug-in using this as a template, follow these steps:
Make changes to the files in the source
directory.
manifest.json
file as well.Zip the updated contents of the source
directory.
There is one parameter, text
, which is the custom text. The following example can be used in appearance for a text field:
custom-text-placeholder(text='Please write the full name')