'jQuery' is undefined

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
schuess
Posts: 82
Joined: Wed Jan 22, 2014

04 Aug 2016

I would like to reference a jquery library on my form, but I too am struggling with the propper procedure to accomplish it. I have done some research on this forum, but have found so many different suggestions, i am not sure which to pick.


window.$ = $;

window.jQuery = $;

var $ = Plumsail.FD.jQuery;

var $ = $fd_jQuery;



I am not a expert javascript programmer. Please instruct me on how to accomplish this.I have already added the script tag to my masterpage that correctly referrences the .js file.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

05 Aug 2016

Hi Matt,

Put the following code into JS-editor of Forms Designer:

Code: Select all

window.$ = window.jQuery = $;
After this code, you can load external scripts that require jQuery.

Locked
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 3 guests