Set custom editor state as invalid

Hi! I’m working on a custom editor to handle a JSON field with multi-level arrays. I’ve already created the editor and it is working as expected, but to finish it I need to implement some validations.

Is there a way to set a custom editor as “invalid”, so when I click Save the data will not be saved until I fix the field value?

Not directly, because the validation is part of the forms model and not part of any editors. You can only mark it as required and set a null value or so.

Thank you, Sebastian. As I thought.

Unfortunatelly I can not set a null value, because I have some custom validations in all sub-levels of the JSON.

I’ll continue working and if I find a solution, I’ll share it here.

Thank you again.