InputfieldText class - ProcessWire API
| Name | Return | Summary | |
|---|---|---|---|
| Inputfield | string null | HTML5 autocomplete attribute, used only by text and email, not other descending types 3.0.252+ DEFAULT: null | |
| Inputfield | string | Optional initial/default value DEFAULT: blank | |
| Inputfield | int | Maximum allowed length of value or 0 for no min DEFAULT: 0 | |
| Inputfield | int | Minimum allowed length of value or 0 for no max (usually combined with 'required' option) DEFAULT: 0 | |
| Inputfield | bool | By default whitespace is trimmed from value, set this to true to bypass that behavior . DEFAULT: false | |
| Inputfield | string | HTML5 pattern attribute for front-end validation DEFAULT: blank | |
| Inputfield | string | Placeholder attribute text DEFAULT: blank | |
| Inputfield | bool int | When combined with "required" option, this also makes it use the HTML5 "required" attribute. DEFAULT: false | |
| Inputfield | int | Show a character counter (1) or word counter (2) or neither (0). Recommended value is 1 when using minlength or maxlength. DEFAULT: 0 | |
| Inputfield | int | Size of input or 0 for full width DEFAULT: 0 | |
| Inputfield | bool | Should HTML tags be stripped from value? DEFAULT: false | |
| Inputfield | string | Input type DEFAULT: text | |
| Inputfield | bool | When combined with multi-language support, setting this to true will provide one input per language. Get/set each language value with the "value[languageID]" property, and just "value" for default language. DEFAULT: false |