0

I am using clientside validation module for drupal 7.I have two button for submit node one is for save as draft and other submit so Now my scenario is that if i click on save as draft then it should not display client side validation error.

0

You can add a 'cancel' class to your draft button and it will skip clientside_validation, we do this out-of-the-box for the delete button, code can be found in clientside_validation.module, line 278

  • it is working fine after adding 'cancel' class but there is one more issue if there are some integer values and if put character values then how it will show error. because after adding class it does not checks. – Fawwad Mar 11 '14 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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