Because much of our imported data technically has validation errors, users are unable to update fields without first correcting previously entered bad data. This wouldn't be a problem except that many times this user doesn't have the information needed to enter a correct value into that field but we still need to save their update.
Is it possible to disable the validate on submit for a DynamicForm?
The best solution I could find thus far.
I'm disabling validation and overridding
getValues, which is called as part ofsaveDataso I manually parse through any fields and look for errors. If I find an error I remove it from the return value and store it under thevaluesManager.invalidatedFields.If a field had an error it will not be included in the save, but because the server will return the original value I had to override
setValuesas well to prevent your (bad) change from being overridden.Also, because
getValuesis called on initial load it validates on load as well.