InputfieldRepeater class

Repeats fields from another template. Provides the input for FieldtypeRepeater.

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the InputfieldRepeater class also inherits all the methods and properties of: Inputfield, WireData and Wire.

Show class?             Show args?        

Common

NameReturnSummary 
accordionMode bool int 
copyPasteCookieName()
stringGet the copy/paste cookie name 
familyFriendly bool int 
familyToggle bool int 
getConfigInputfields()
InputfieldWrapper@return InputfieldWrapper
getWrappers()
array InputfieldWrapperGet the repeater wrappers (InputfieldWrappers) indexed by repeater page ID 
isEmpty()
boolReturns whether any values are present 
loudControls bool int Always show controls regardless of hover? 
noScroll bool int Do not scroll to newly added items? 
numPublished()
intReturn quantity of published items 
numRequiredEmpty()
intGet number of required but empty Inputfields (across all repeater items) 
processInput(WireInputData $input)
$thisProcess the input from a submitted repeaters field
render()
stringRender the repeater items
renderAjaxNewItem()
stringRender a new item for ajax after 'add new' link clicked 
renderReady()
boolCalled before render() or renderValue() method by InputfieldWrapper, before Inputfield-specific CSS/JS files added 
renderRepeaterLabel(string $label, int $cnt, Page $page)
stringRender the repeater label
renderValue()
stringRender value (no inputs)
repeaterDepth int 
repeaterMaxItems int 
repeaterMinItems int 
set(string $key, mixed $value)
Inputfield InputfieldRepeaterOverride the default set() to capture the required $page variable that the repeaters field lives on. 
setAttribute($key, $value)
InputfieldRepeater InputfieldSet attribute 
singleMode bool int 

Additional methods and properties

In addition to the methods and properties above, InputfieldRepeater also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.244

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer