You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the Json editor widget has build in validation, ActiveForm does not know about invalid data and let's the user save the form. I see two approaches:
This widget adds a client side validation to the ActiveForm in which it operates.
A yii2-json-editor validation rule can be added in the model rules definition which takes care of the client(+server) validation of the data with the schema.
Option 1 is probably the easiest to build and follows the logic of self contained validation. Option 2 is the most transparant from a developers perspective.
Andre
The text was updated successfully, but these errors were encountered:
Although the Json editor widget has build in validation, ActiveForm does not know about invalid data and let's the user save the form. I see two approaches:
Option 1 is probably the easiest to build and follows the logic of self contained validation. Option 2 is the most transparant from a developers perspective.
Andre
The text was updated successfully, but these errors were encountered: