Skip to main content

onSuccess

Callback if validation passed.

.onSuccess(event)

where event is a form submit event.

info

Please note that this callback does not submit your form. You should trigger it manually, or use submitFormAutomatically setting.

.onSuccess(( event ) => {
event.currentTarget.submit();
});