Hi,
just in case you did not discover it already, there is a much more recent documentation on embedded forms here: https://docs.camunda.org/manual/7.4/reference/embedded-forms/
To your questions:
- Angular validation validates non-stop. If you only want to validate the user input on submit, I recommend Javascript to do that. You can hook into the submit event and also prevent the submit there, if there are any validation errors.
- You should not set the value of the element directly. Instead, you should update the angular model value and let angular do the update to the view. I think the cam-variable-name directive registers the field in the form scope, so you should be able to call
$scope.customerNumber = insuredPerson.customerNumber;
Does this help you?
Cheers
Sebastian