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 ?

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13