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 452

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
    RE: Use jQury with in form Script

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans