Page::setDefaultAction() – Sets the default action invoked on page-form submit.


require_once 'HTML/QuickForm/Page.php';

void HTML_QuickForm_Page::setDefaultAction ( string $actionName )


This is necessary as the user may just press Enter instead of clicking one of the named submit buttons and then no action name will be passed to the script.

This method adds a special hidden element to the form the contents of which will be used by Controller if no action name is found in the submitted values.


string $actionName

default action name


throws no exceptions thrown


This function can not be called statically.

Loads the submit values from the array. (Previous) Class representing an action to perform on HTTP request. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.