Why doesn’t ASP.Net MVC client side validation trigger where input is outside form element, but linked via form=”formid” attribute?
I am using ASP.Net 8.0 MVC…
ScenarioName property has a Required attribute in the Model..
When I use the following, clicking submit button with all of these elements wrapped inside the form tag works as expected!
Meaning Client side validation is triggered and the required validation message is displayed before posting to the server.