BaseCustomForm.HandleFormSubmissionAsync method
Handles the final user action on the custom form, either submission or cancellation. Implementations should use this method to persist form data when the user confirms their input, or to discard changes when the user cancels.
public Task HandleFormSubmissionAsync(bool commit)
| parameter | description |
|---|---|
| commit | Indicates the user's intent: true if the user confirms or submits the form (e.g., clicks "OK" or "Save"), or false if the user cancels or rejects the form (e.g., clicks "Cancel"). |
Return Value
A task that represents the asynchronous operation. Implementations should execute the necessary actions based on the user’s intent, such as saving form data when commit is true or discarding changes when commit is false.
Remarks
This method is called at the conclusion of the user’s interaction with the custom form. It provides implementations with the opportunity to finalize operations such as persisting, submitting, or discarding data based on the user’s decision.
See Also
- class BaseCustomForm
- namespace Autodesk.DataExchange.UI.CustomForm