Validating two user controls

To add validation to the form control, use the Is Valid and Validation Error properties in the Bind State To Control Properties method: Please note that this validation feature is available out-of-the-box on Composite C1 (now C1 CMS) v.3.2 or later. Basically, this can be any unique string, but often an URI is used here.

So we now need to register our component as value accessor provider so Angular knows that it can call these methods when used in a form.

The validated result will be displayed outside of the form via binding, which will only update when the user input is valid.

You can go straight to the code right here: https://plnkr.co/edit/i FXRk JWVZ9t Q9i6mxmuf?

Registering a Form UI Control namespace for the first time Registering your own namespace is only necessary the first time and is done like this (“ is used here – ensure that you use your own string or URI for the namespace): Before you proceed, ensure that the file /App_Data/Composite/Composite.modified.config does not exist.

(If the file does exist, the system has outstanding configuration changes, which must be stored before you can continue.