Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

remote validation firing for unmodified and valid field and blocking form submit

$
0
0

Hi,

I have a form which I am loading for user edit . One of the fields is an ID field which I want to check is valid.  If I don't modify any of the fields on the form and click submit, the remote validation fires, returns true and blocks the submit. I see in the debug window the remote validation is called and returns true, but the submit action on the controller is never called. 

If I click on the field and then move to another field remote validation fires and then I can submit the form.  It seems like If i don't edit any of my form data and push submit then the remote validation fires and blocks submit even though it is returning true.  Then I have to push submit again for my submit action to be invoked on my controller.

Anyone know a way around this ? 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>