InputfieldWrapper::removeByName()
Remove an Inputfield from the form by name
Note that this works the same as the getByName/getChildByName methods in that it will find (and remove) the field by name, even if nested within other wrappers or fieldsets. It returns the removed Inputfield when found, or null if not.
Available since version 3.0.250.
Usage
$inputfield = $inputfieldWrapper->removeByName(string $name);Arguments
| Name | Type(s) | Description |
|---|---|---|
$name | string |
Return value
InputfieldWrapper methods and properties
API reference based on ProcessWire core version 3.0.252