You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have some event driven behavior in forms that are triggered on lifecycle naming conventions, ie: onBeforeSubmitonAfterSubmit etc..
My use case is processing some async data in a custom field that is a child of the form and after the processing is done in the field it makes a final change to the field's value before the submit fires.
Thoughts?
The text was updated successfully, but these errors were encountered:
I don't know if this would fix your issue but I was facing something similar where I was submitting a form but waiting for some background event to complete prior to my form submission hitting the API. it looks like this:
async onSubmit (values) {
// If the draft is in the middle of saving, let it finish before continuing
if (this.isSavingDraft) {
setTimeout(() => this.onSubmit(values), 1000);
return;
}
...
feature request
I would like to have some event driven behavior in forms that are triggered on lifecycle naming conventions, ie:
onBeforeSubmit
onAfterSubmit
etc..My use case is processing some async data in a custom field that is a child of the form and after the processing is done in the field it makes a final change to the field's value before the submit fires.
Thoughts?
The text was updated successfully, but these errors were encountered: