Set all fields as touched if submit is pressed

Hello,

Thank you for a great library! I m using it for a react app. I was able to incorporate the form and build validations on the input fields.

I want to know if I can mark all fields as touched and enforce validation on all input fields when user clicks on submit. Right now it only validates the fields which have been altered.

Regards.

Hi @nikhil,

JSON Forms always validates the whole form by default. We don’t support “touched” validation out of the box in our off-the-shelf renderers. Currently this is a feature which users need to integrate themselves if they want to have it.

So either there is an issue somewhere or you are not using JSON Forms. Which version and renderer sets are you using?