InputfieldForm class
Contains one or more fields in a form
Here is an example of creating an Inputfield Optional classes you can add to the Inputfield Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the In addition to the methods and properties above, Inputfield$form = $modules->get('Inputfield
Inputfield
tells it not to worry about lining up all columns vertically.Inputfield
indicates that form will be in 2-column label => input format (column widths do not apply).Inputfield
tell it to notify user if they make any changes and forgot to submit.Inputfield
class also inherits all the methods and properties of: InputfieldWrapper, Inputfield, WireData and Wire.Common
Name Return Summary string
Get name for this form WireInputData
null
Return WireInputData provided to processInput() method or null if not yet applicable bool
string
Is form submitted and ready to process? bool
Process the form InputfieldWrapper
Process input string
Render form Errors
Name Return Summary array
Return an array of errors that occurred on any of the children during input processing. Properties
Name Return Summary Default Inputfield string
Form action attribute ./
Inputfield string
Optional markup to append to the form output ''
Inputfield int
Optionally set the column width spacing (pixels) auto
Inputfield string
Confirmation text that precedes list of changes when class Inputfield There are unsaved changes:
Inputfield string
Optionally set a description headline for the form ''
Inputfield string
Form method attribute POST
Inputfield string
Optional markup to prepend to the form output ''
Inputfield bool
Set to false to disable automatic CSRF protection true
Additional methods and properties
API reference based on ProcessWire core version 3.0.251