ProcessPageEdit::processInputErrorAction() method

Process required error actions as configured with page’s template

Usage

// basic usage
$bool = $processPageEdit->processInputErrorAction(Page $page, $inputfield, string $name);

// usage with all arguments
$bool = $processPageEdit->processInputErrorAction(Page $page, $inputfield, string $name, $errorAction = null);

Arguments

NameType(s)Description
pagePage
inputfieldInputfield, InputfieldRepeater

Inputfield that has already had its processInput() method called.

namestring

Name of field that we are checking.

errorAction (optional)null, int

Error action from $page->template->errorAction, or omit to auto-detect.

Return value

bool

Returns true if field $name should be skipped over during processing, or false if not


ProcessPageEdit methods and properties

API reference based on ProcessWire core version 3.0.200

Twitter updates

  • New post: Multi-language field translation export/import — In this post we cover the details of a new module that enables export and import capabilities for multi-language fields in ProcessWire… More
    5 August 2022
  • Weekly update, July 29: Continuing upgrades to ProcessWire’s comments system and FormBuilder, along with a working example—More
    29 July 2022
  • Weekly update for July 22– Looking back at what web development was like in the year 2000. Plus some more discussion on the path from CKEditor 4 to CkEditor 5 in ProcessWire: More
    22 July 2022

Latest news

  • ProcessWire Weekly #430
    In the 430th issue of ProcessWire Weekly we're going to check out some brand new third party modules, a new site of the week, and more. Read on!
    Weekly.pw / 7 August 2022
  • Multi-language field translation export/import
    In this post we cover the details of a new module that enables export and import capabilities for multi-language fields in ProcessWire.
    Blog / 5 August 2022
  • Subscribe to weekly ProcessWire news

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK