Base solution for your next web application
Open Closed

Rad Tool: Required Field validation not firing on Navigation Properties #7014


User avatar
0
rucksackdigital created

Hello,

I used the Power Tools to scaffold out a new entity for storing contact information. One of the fields references the User entity, and is a required relationship. Frontend validation for my other required fields (text inputs) are working properly but I am able to attempt a form save without selecting a user, which throws an exception. I see "required" attributes on the UserId hidden field but since it's hidden it's not triggering validation (and I would want it to show the error under the selector anyways not where the Id is stored in the form). Do I have something configured incorrectly or do I need to add some manual validation in?

I am using the .NET Core with MVC & jQuery project base.


1 Answer(s)