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 :
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 ? 

I have the same question (0)
  • Suggested answer
    Denny Deng Profile Picture
    on at

    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

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 47

#2
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 32 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans