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

Announcements

No record found.

News and Announcements icon
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.

  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 143

#2
ParthPatel249 Profile Picture

ParthPatel249 96

#3
11manish Profile Picture

11manish 92 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans