Is there a way to check if JSONSchemaForm has failed?

I can't figure out how to handle form submission error on JSONSchemaForm component.

I didn't find any related properties of this component:
image

But I saw a notification with the error:
image

How can I intercept this notification or depends on what fields I can be truly sure that the form is incorrect?

Hello @danyloh!

One option would be to add in a custom event handler for the on submit action.

You could write a JS Query block that would take in the form.data and then run any custom logic you want to run against the form's inputs.

Then you could chain in an on success to run the POST to DB query and on fail post a custom message to the screen/open a modal with added details.

I would say that the error message you screenshotted is coming back as a response from the DB connector so it will definitely be correct in terms of the SQL not matching schema level requirements.

In the use case you are thinking, what behavior would you like to have happen when a user submits invalid form data?

Side note, I am a little confused about the liveValidate property, as you have it off in the screenshot.

I was just testing it out to see if turning it on would give me a message that I had used an invalid email address while typing on the form, but this did not appear and I was able to submit with an invalid email :thinking: