jQuery validation for form inputs
Posted by steve4ride - Nov 17 ’12 at 12:38
Hi,
I use to work with jQuery validation plugin, but as I have seen in this blog you provide custom validation based on aler() method. Can you include jQuery validation plugin in your tool. It'll be really handy.
-
Anthony (Support)ModeratorMember for: 9 years 6 months 6 days
Hello, steve4ride.
You can add jQuery validate script to page, just upload script file to SharePoint library like Styles Library, then open JavaScript window of SharePoint Forms Designer
Put following code to code editor:
//add jQuery validate script to page
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "<Link to script>";
$("head").append(s);
Replace <Link to script> with link to uploaded script. After that you can use validation plugin as you use to.
-
schuessMemberMember for: 8 years 3 months 22 days
Is this still a valid method to referrence a external plugin?
-
Dmitry KozlovAdminMember for: 8 years 7 months 25 days
[#2]: It's better to use HTML-control to reference external scripts.
-
schuessMemberMember for: 8 years 3 months 22 days
[#3]: Can you give an example what you mean by HTML control?
-
schuessMemberMember for: 8 years 3 months 22 days
i guess you are just talking about <script type="" src=""></script>
-
Dmitry KozlovAdminMember for: 8 years 7 months 25 days
[#5]: Yes, right.