Skip to content
Discussion options

You must be logged in to vote

Hello,

in your submit function you have to return an object with errors.

Check this example: https://stackblitz.com/edit/2qj4zm?file=index.js

        <FormRenderer
          schema={schema}
          FormTemplate={FormTemplate}
          componentMapper={componentMapper}
          onSubmit={async () => {
            await sleep(1500); // do your API callback

            return { 'first-name': 'already taken' };
          }}
        />

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hyperkid123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1177 on December 06, 2021 11:54.