Function: submitForm()
function submitForm(page, button): Promise<void>;
Defined in: core/forms.ts:299
Submits the form with one of its buttons and waits for the next page. Throws FormError with
Moodle's messages by field (#id_error_<field>) when the form comes back with errors.
Parameters
| Parameter | Type |
|---|---|
page | Page |
button | string |
Returns
Promise<void>