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.236

Latest news

  • ProcessWire Weekly #549
    In the 549th issue of ProcessWire Weekly we’re going to check out the latest core updates, highlight one older yet still very relevant third party module, and more. Read on!
    Weekly.pw / 17 November 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“I am currently managing a ProcessWire site with 2 million+ pages. It’s admirably fast, and much, much faster than any other CMS we tested.” —Nickie, Web developer