1

I have an article page where I need to do some custom validations in Edit mode(page layout). I tried with PreSaveAction method but I guess it only works for list forms. Any idea how I can validate few conditions before the page is saved or published? Page layout created in HTML mode.

3
  • Hook into the save button with standard javascript eventlistener Commented Jul 2, 2016 at 9:35
  • @DannyEngelmanMPW I thought about that. But 'Save' is not the only action button that can submit the page. There is 'Check In' and 'Publish' too. Last resort would be to hook the code on three event listeners. Commented Jul 2, 2016 at 9:44
  • Thats most likely your only option, or put the validation on every field Commented Jul 2, 2016 at 9:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.