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

Latest news

  • ProcessWire Weekly #560
    In the 560th issue of ProcessWire Weekly we'll check out the latest core updates, cover newly released ProcessWire modules, and more. Read on!
    Weekly.pw / 1 February 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“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