The onerror action returns the following parameter:
Parameter | Type | Description |
error | Object | error: Data returned by the form submission. errorCode: An error code with information about the error; for example, INSUFFICIENT_PRIVILEGES. message: Description of error; we recommend using Lightning:messages to display your error messages in the UI. |
The onload action returns the following parameter:
Parameter | Type | Description |
recordUi | Object |
The object's metadata. For more information, see the User Interface API Developer Guide at https://developer.Salesforce.com/docs/atlas.en-us.212.0.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm. |