m (Text replacement - "|Subject version=2.0,2.1" to "|Subject version=2.0,2.1,2.5") |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
text | text | ||
===Type=== | ===Type=== | ||
input | |||
===Synopsis=== | ===Synopsis=== | ||
How to render a text input field | How to render a text input field | ||
===Description=== | ===Description=== | ||
input elements of type="text" create input fields that let the user enter a text. This is probably one of the most used fields in a form. | |||
===Parameters=== | ===Parameters=== | ||
| Line 20: | Line 20: | ||
===Example=== | ===Example=== | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
< | <input type="text" name="uname" placeholder="Type your username" required="required" /> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
< | <input type="text" name="uname" placeholder="Type your username" required="required" /> | ||
===Note=== | ===Note=== | ||
All attributes for a text input field are supported (like in this case : name, placeholder and required.) | All attributes for a text input field are supported (like in this case : name, placeholder and required.) | ||
===Links=== | ===Links=== | ||
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text | https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text | ||
| ws-class-props | |||
|---|---|---|---|
| Line 1: | Line 1: | ||
{{ | {{Csp class properties | ||
|Subject version=2.0 | |Subject version=2.0,2.1,2.5 | ||
|Doc subject=DevOps:Doc/FlexForm | |Doc subject=DevOps:Doc/FlexForm | ||
|Doc parent=DevOps:Doc/FlexForm/1.0/input | |Doc parent=DevOps:Doc/FlexForm/1.0/input | ||
|Doc sort order=110 | |Doc sort order=110 | ||
|Doc target group=User | |Doc target group=User | ||
|Doc synopsis=How to render a text input field | |||
}} | }} | ||
Latest revision as of 10:08, 21 August 2025
Name
text
Type
input
Synopsis
How to render a text input field
Description
input elements of type="text" create input fields that let the user enter a text. This is probably one of the most used fields in a form.
Parameters
type="text"
All other valid parameters for an input field are valid. Additionally you can use the following attributes: - list - minlength - maxlength - pattern - size - spellcheck
Example
<input type="text" name="uname" placeholder="Type your username" required="required" />
Note
All attributes for a text input field are supported (like in this case : name, placeholder and required.)
Links
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text