I have created a web resource to contain my jQuery 3.3.1.min.js script. I have loaded the script onto my form, but am not sure what to call in my OnLoad form event to reference jQuery on my form:
I've seen a few posts, but it's still not clear to me.
Thanks!
*This post is locked for comments
Sorry for not responding sooner. I have decided to not use jQuery directly on my form.
Sorry that I didn't respond sooner. Thanks for sending the article link.
Hi,
You should be able to use them just like other methods from your simple javascript, You can click on the Add button and call any jquery method from your jquery or you can call javascript and in javascript web resource you can refer jquery.
Hi Mike,
I agree with Adrian, it is not recommend/supported to use jQuery in form however if you still wish to use it, you can simple add it to the form libraries (like you have already done it) and in your custom resource, simply use it. I don't think you need to add any reference. Are you facing any issues?
Hope this helps.
Hi Z_Mike,
This is not supported.
I have seen that article, but I would like to use jQuery ajax on the form instead of an embedded web page.
Hi Z_Mike,
Microsoft does not recommend using jQuery in form scripts and ribbon commands, but it is okay to use jQuery in HTML web resources. You can find information on some of the best practices for using JavaScript with Microsoft Dynamics 365 here.
This article shows an example of jQuery used inside a HTML web resource.
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156