Page 1 of 1
jQuery validation for form inputs
Posted: 17 Nov 2012
by steve4ride
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.
Re: jQuery validation for form inputs
Posted: 18 Nov 2012
by Anthony (Support)
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.
Re: jQuery validation for form inputs
Posted: 01 Aug 2016
by schuess
Is this still a valid method to referrence a external plugin?
Re: jQuery validation for form inputs
Posted: 02 Aug 2016
by Dmitry Kozlov
It's better to use HTML-control to reference external scripts.
Re: jQuery validation for form inputs
Posted: 02 Aug 2016
by schuess
Can you give an example what you mean by HTML control?
Re: jQuery validation for form inputs
Posted: 02 Aug 2016
by schuess
i guess you are just talking about <script type="" src=""></script>
Re: jQuery validation for form inputs
Posted: 03 Aug 2016
by Dmitry Kozlov
Yes, right.