Base solution for your next web application
Open Closed

RAD Tool template doesn't enforce client side validation #6172


User avatar
0
tomop created

It doesn't look like client side inline validation is enabled by default when using the RAD tool to create an entity. Instead, the Save button on the modal form is greyed out and the user doesn't know which field to correct the error in.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @tomop

    I think you are using ASP.NET & Core Angular version. This is AspNet Zero's default behaviour rather than RAD Tool actually.

  • User Avatar
    0
    tomop created

    Yes, I am suing ASP.NET Core & Angular. I used the RAD tool and noticed it didn't generate the <validation-messages> element in the <form-group>. All I had to do was add this element and then add #ContactFirstnameInput="ngModel" to the input element in order to get the page to show inline validation rules.

    I am generally curious how to get clientside inline validation to work in this world as like you say, it doesn't seem to be enabled by default. But this isn't entirely true as it seems to work for some existing entities like the create user, but not all?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Created an issue here https://github.com/aspnetzero/aspnet-zero-core/issues/2066. Please follow this issue, we will implement it in a short time.