Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Include external JS file on hosted site

Posted on by 295

Hi,

I have google js libraries that I want to use for auto complete of addresses.

The libraries are located at using the reference:

<script src ="maps.googleapis.com/.../js;libraries=places&async=2&callback=initAutocomplete" async>
</script>

How do I include this within my CRM form?

*This post is locked for comments

  • Stanley Lai Profile Picture
    Stanley Lai 295 on at
    RE: Include external JS file on hosted site

    I found that the best way was to put the login in custom action and then reference it via JScript.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Include external JS file on hosted site

    This is very old, and applied to a much older version of dynamics crm, so it is likely unsupported, but if you want to give it a shot take a look at it:

    danielcai.blogspot.com/.../another-talk-about-referencing-external.html

    Hope this helps.

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Include external JS file on hosted site

    Just include as JS Webresource and add it to your form. Call the jS function on the change event of your custom fields to bring values.

    Reference Link to add js in CRM.

    www.c5insight.com/.../how-to-use-javascript-on-dynamics-crm-201120132015-form.aspx

    hope this helps

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Include external JS file on hosted site

    Hi,

    you could download it. Name it as you want (like googleLibrary.js). Then register it as a webressource in your solution.

    Then on the entity form add it in order to use the different function: crmbook.powerobjects.com/.../javascript

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans