formik-schema icon indicating copy to clipboard operation
formik-schema copied to clipboard

How to Reset form

Open abelkbil opened this issue 6 years ago • 2 comments

Thanks for the nice library.

const NewDataSource = ({handleSubmit, initialValues}) => (
  <Form
    schema={newDatasourceSchema}
    initialValues={initialValues}
    onSubmit={(values) => {
      handleSubmit(values);
    }}
  />
);

After submit I need to reset the form. Where can I find the documentation.

Thank you

abelkbil avatar Mar 22 '18 12:03 abelkbil

could you please mention, how to add validation too. Much thanks

abelkbil avatar Mar 22 '18 12:03 abelkbil

@abelkbil the Form component passes all its props to the underlying formik form which has extensive documentation you will find all you need there

Romany-Saad avatar Sep 15 '18 15:09 Romany-Saad