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

NameType(s)Description
$namestring

Return value

Inputfield null

Removed Inputfield object on success, or null if not found


InputfieldWrapper methods and properties

API reference based on ProcessWire core version 3.0.252