Skip to content
Advertisement

SharePoint Multiple form Validations

I have the following JavaScript that I am trying to use. Can someone assist and tell me what is incorrect? I would greatly appreciate any help

JavaScript

Advertisement

Answer

Your { and } aren’t matching up. It’s as if you wanted an else-statement but deleted it and left the closing bracket. Additionally you don’t want to return true if you are doing multiple checks. Once you hit one check that passes, you will submit the form without doing the other checks. See below and let me know if this solves your issue.

JavaScript

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement