Open Closed

FluentValidation Not being Shown in Form Inputs #7536


User avatar
0
nabass created

I am trying to apply FluentValidation to the CreateUpdateZacatCompanyDto class, but the error messages from the CreateUpdateZacatCompanyDtoValidator, which inherits from AbstractValidator<CreateUpdateZacatCompanyDto>, are not being displayed.

I have created all the necessary classes and injected the configuration into the module. How can I ensure that the error messages are shown for each field?


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    FluentValidation does not provide integration with Blazor out of the box

    see: https://docs.fluentvalidation.net/en/latest/blazor.html

    You can consider to use Blazorise validation https://blazorise.com/docs/components/validation

  • User Avatar
    0
    nabass created

    Is there any way to use FluentValidation as attribute based validation? Alternatively, how can I apply FluentValidation inside the DTO so that it works for both the backend and the frontend?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    No , as the fluent validation document mentioned, it does not support Blazor.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20