Open Closed

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


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.

2019-05-15_12-20-21.png


1 Answer(s)