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)
NoneAdd a dropdown action item that links to a URL 
InputfieldSubmit::addActionValue(string $value, string $label)
NoneAdd a dropdown action item that populates a new 'value' for the submit button 
InputfieldSubmit::get($key)
None 
InputfieldSubmit::processInput(WireInputData $input)
$thisProcess input
InputfieldSubmit::render()
stringRender the button
InputfieldSubmit::renderReady()
boolRender ready 
InputfieldSubmit::set($key, $value)
None 
InputfieldSubmit::setAttribute($key, $value)
None 
InputfieldSubmit::setSecondary()
$thisMake this button secondary? (slightly faded) 
InputfieldSubmit::setSmall()
$thisMake this button small? 
InputfieldSubmit::showInHeader()
$thisShow another copy of this button in the header? 

Properties

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