atreya-yelishetti

Results 1 comments of atreya-yelishetti

Something like this: **//someother validations written here like as shown** ValidationRules .ensure('cid').displayName('Company ID').required().then().matches(/^[a-zA-Z]{1}/).withMessage('\${$displayName} should always start with alphabet').then().matches(/^[a-zA-Z]{1}[a-zA-Z0-9]*$/).withMessage('Spaces and Special characters are not allowed.').then().minLength(this.companyCidMin).maxLength(this.companyCidMax).on(this.selectedItem); **//then the following:** if(this.companyNameRequired){ ValidationRules .ensure('cid').displayName('Company...