Program flow
Main flow
List
Detail
Save a single record
Context
Multiform. Tab with multiple single line records. 6_edit_multiple_records_in_row_with_form form: method="post" type="submit" event listener on form submit => call recordSave(parameters)
Save button is a crud element In CRUD-element: Save button. Type="submit" Delete button: onclick deleteRow(parameters)
Flow
Clicking the save button generates the submit event. The form listens to this event and prevents the default behavior with event.preventDefault(); Instead of the default behavior (PHP submit), the form calls recordSave(parameters). To get all form specific parameters needed by recordSave(), we need access to the form. That is why the button can't call recordSave.