Form does not detect dirty/clean values properly when one of the fields is a richselect box

I am trying to setValues for a form, where the fields are text boxes + a richselect component. The richselect component (“role”) contains objects as data.

After calling form.setValues({…}), form.isDirty() returns true, but printing dirty values shows only the “role” value, while the text box values show up as clean values.
Calling form.setDirty() does not solve it either.

Please see Code Snippet

Is there a workaround for this? I want the form to be clean after I setValues, so that the next check for form.isDirty() returns false.

Good day @username12345!

Unfortunately, I report this as bug now. But we work on it and it’ll be fixed as soon as possible!

As workaround you can change onBeforeShow() on onShow(): Code Snippet

1 Like

Thanks for the workaround!

1 Like