InputfieldSubmit class

Form submit button

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

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
InputfieldSubmit::addActionLink(string $url, string $label)
None

Add a dropdown action item that links to a URL

 
InputfieldSubmit::addActionValue(string $value, string $label)
None

Add a dropdown action item that populates a new 'value' for the submit button

 
InputfieldSubmit::get($key)
None 
InputfieldSubmit::processInput(WireInputData $input)
$this

Process input

InputfieldSubmit::render()
string

Render the button

InputfieldSubmit::renderReady()
bool

Render ready

 
InputfieldSubmit::set($key, $value)
None 
InputfieldSubmit::setAttribute($key, $value)
None 
InputfieldSubmit::setSecondary()
$this

Make this button secondary? (slightly faded)

 
InputfieldSubmit::setSmall()
$this

Make this button small?

 
InputfieldSubmit::showInHeader()
$this

Show another copy of this button in the header?

 

Properties

NameReturnSummary 
InputfieldSubmit::header bool Whether or not button will also appear in header .
DEFAULT: false
 
InputfieldSubmit::html string Button inner HTML label 3.0.134
DEFAULT: ''
 
InputfieldSubmit::secondary bool Whether or not button is secondary .
DEFAULT: false
 
InputfieldSubmit::small bool Whether or not button should be small, where supported .
DEFAULT: false
 
InputfieldSubmit::submitValue string false Value that was submitted if clicked 3.0.134
DEFAULT: false
 
InputfieldSubmit::text string Button inner TEXT label, if $html not provided. 3.0.134
DEFAULT: ''
 
InputfieldSubmit::textClass string Class applied to span for inner html/text, omitted if blank 3.0.134
DEFAULT: 'ui-button-text'
 
InputfieldSubmit::value string Button value attribute and inner TEXT label, if $text it provided
DEFAULT: 'Submit'
 

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.252