Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to entirely disable client side validation of list forms? Specifically the date field validation which occurs before the form is ever submitted.

I have tried PreSaveAction() but not sure how to actually bypass the validations.

Thanks!

share|improve this question
    
Why would you want to bypass the client side validations ? The data entered could be corrupted and would lead to inconsistant list data... –  Sébastien Levert Nov 2 '10 at 18:19
add comment

2 Answers

Move all your validation logic to PreSaveAction() and then check the condition on which you want to skip the validation and return true from the method.

Nilesh

share|improve this answer
add comment

You could off-course override the Javascript functions which handle the client side validations. Another solution would be to disable Javascript.

I don't think you should do either one of them though. Validation is there for a reason. Perhaps changing the validation logic on a form (or creating your own) is a better solution here.

share|improve this answer
    
It is a custom form I am working on. Certainly do not want to disable javascript. Which functions would need to be overridden? Basically just looking for how to disable required field validation on date/time fields. Other solution would be to validate EVERYTHING on the client side, but I don't know where to start there either. –  thomas Nov 3 '10 at 12:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.