web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Loading jQuery script onto CRM 365 form

(0) ShareShare
ReportReport
Posted on by 160

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:

0218.jquery.png

I've seen a few posts, but it's still not clear to me.

Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at
    RE: Loading jQuery script onto CRM 365 form

    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.

  • Z_Mike Profile Picture
    160 on at
    RE: Loading jQuery script onto CRM 365 form

    I have seen that article, but I would like to use jQuery ajax on the form instead of an embedded web page.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at
    RE: Loading jQuery script onto CRM 365 form

    Hi Z_Mike,

    This is not supported.

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Loading jQuery script onto CRM 365 form

    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.

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: Loading jQuery script onto CRM 365 form

    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.

  • Z_Mike Profile Picture
    160 on at
    RE: Loading jQuery script onto CRM 365 form

    Sorry that I didn't respond sooner.  Thanks for sending the article link.

  • Verified answer
    Z_Mike Profile Picture
    160 on at
    RE: Loading jQuery script onto CRM 365 form

    Sorry for not responding sooner.  I have decided to not use jQuery directly on my form.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans