action.skip

Form

function onSubmit

Function that will be called on formik submit. Should return array with new settings data and errors

Returns - Array
Result that has contains 2-element array: [settings: object, errors: object] with new settings and errors if occured during submission.

Parameters

Name Type Description
values object Submitted setttings

function onValidate

Function that will be called on formik validate. If there will be no result, there will be yup validation based on schema. If returns errors, they will be passed to formik.

Returns - null | object
Object or null if there are no errors

Parameters

Name Type Description
values object Current setttings