1

For 90% of my site the standard MVC annotation with client script method is working a treat. But I have a form on the site that is quite complicated with multiple instances of dynamic form content dependant on answers to questions etc.

If I have the unobtrusive script included on the page, it's capturing the form submit and not allowing my custom jquery validate to validate the form.

I don't really want to refactor the site to have a seperate layout to remove the script when it's not needed. I wondered if there was an easy way to give control back to my custom validate script.

Any help would be great.

1 Answer 1

1

In your view you can disable client side validation like this

Html.ViewContext.ClientValidationEnabled = false
Sign up to request clarification or add additional context in comments.

1 Comment

Excellent I'll try that in a bit.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.