The form returns validation error message Form cannot be submitted while there are validation errors on 'Save and Route' even though the data is correct. If the form is saved first and opened again it can then be submitted without any changes.
Composer 11.x and 12.x
The validation error was caused by an incorrect default value in a field that was not on the actual view.
- Use the $form.errorInfo variable in the JS Console to confirm cause. It shows all validation errors with field names.
- Remove any values in the field causing the validation error.
click deploy then input your values and click save and route Nd then click F12
and then enter '$form.errorInfo':