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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Use jQury with in form Script

(0) ShareShare
ReportReport
Posted on by 458

Hi there all

It seems using jquery in crm script is an unsupported way, but I have to do some text Processing and need methods of jQuery.

How can I use that?


Any help will be appreciated.

I have the same question (0)
  • Suggested answer
    H V Profile Picture
    351 on at

    Hi Albert,

    You can add javascript web resource in CRM which contains below jquery:
    ajax.googleapis.com/.../jquery.min.js


    When you need to use any jquery method, please load this webresource then use your respective jquery method.

    function onChangeOfAnyField(){
    	LoadWebResource("bzmap_jquery3.2.1.js");
    
    
    	// add your jquery logic
    
    }
    
    
    function LoadWebResource(resource) {
    
        var httpRequest = null;
        var serverUrl = "https://xyz.crm.dynamics.com";
        try {
            if (window.XMLHttpRequest) {
                httpRequest = new XMLHttpRequest();
            }
            else {
                httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
            }
    
            httpRequest.open("GET", serverUrl   "/webresources/"   resource, false);
            httpRequest.send(null);
            eval(httpRequest.responseText);
        }
        catch (e) {
            alert("LoadWebResource >> Error loading "   resource   ":\n"   e.description);
        }
    }
    
    

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans