InputfieldWrapper::getByField()

Get Inputfield by Field (hasField)

This is useful in cases where the input name may differ from the Field name that it represents, and you only know the field name. Applies only to Inputfields connected with a Page and Field (i.e. used for page editing).

Available since version 3.0.239.

Usage

$inputfield = $inputfieldWrapper->getByField($field);

Arguments

NameType(s)Description
$fieldField string int

Return value


InputfieldWrapper methods and properties

API reference based on ProcessWire core version 3.0.251