Open Closed

Suppress ABP validation in Angular component #471


User avatar
0
alexander.nikonov created
  • ABP Framework version: v3.2
  • UI type: Angular

We have created the component, inherited from ControlValueAccessor. There we have own validation. We want to suppress ABP validation which intrudes into our validation check. How to do that?


2 Answer(s)
  • User Avatar
    0
    muhammedaltug created

    Hello,

    You can use skipValidation input with value true for this case. If you want disable abp-error messages for all formcontrol elements in form you can add this input to form tag. If you want disable for specific form control element add this input to your form control element.

    <!-- disable all abp errors in form --> 
    <form [formGroup]="yourFormGroup" [skipValidation]="true">
            ....
    </form>
    
    <!-- disable abp error for specific form control element -->
    <form [formGroup]="yourFormGroup">
            <your-form-control
            formControlName="formControlName"
            [skipValidation]="true"
            ></your-form-control>
    </form>
    
  • User Avatar
    0
    muhammedaltug created

    Hello alexander,

    Does this solution resolve your problem ?

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19