Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Javascript Function

(0) ShareShare
ReportReport
Posted on by 340

Hello, 

I have a javascript file with many functions. I think is loaded in the job form. However this function I don’t see it use in the form properties or in the onLoad event. 

this function is however running and is functioning depending on the form interaction. I just don’t know how I can deactivate this function from running so it doesn’t affect me doing something on the form.

the only way is to take out the js and comment it out and then insert it back in, what do you think ? 

  • Suggested answer
    Denny Deng Profile Picture
    on at
    RE: Javascript Function

    not sure if you have the event registered programmatically instead of on UI, something like below:

    function RegisterEvents()

    {

       if(typeof Xrm == 'undefined' || Xrm == null) setTimeout(function(){ RegisterEvents(); }, 200);

       else{

          Xrm.Page.getAttribute(arg).addOnChange(...);

       }

    }

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 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…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 67 Most Valuable Professional

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

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

Overall leaderboard

Product updates

Dynamics 365 release plans