Inputfield is the base class for modules that collect user input for fields.
// Create an Inputfield $inputfield = $modules->get('InputfieldText'); $inputfield->label = 'Your Name'; $inputfield->attr('name', 'your_name'); $inputfield->attr('value', 'Roderigo'); // Add to a $form (InputfieldForm or InputfieldWrapper) $form->add($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
Inputfield class also inherits all the methods and properties of: WireData and Wire.
Additional methods and properties
In addition to the methods and properties above, Inputfield also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.124