jQuery validation for form inputs
-
- Posts: 2
- Joined: Thu Nov 15, 2012
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.
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)
- Moderator
- Posts: 11
- Joined: Sat Nov 17, 2012
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.
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.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
It's better to use HTML-control to reference external scripts.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests