Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Disable/Stop builtin JS File in CRM 365 ?

(0) ShareShare
ReportReport
Posted on by

I want to Disable builtin JS file on entity save event "Bookable Resource Booking"  on condition if "Start time" grater than "Actual Arrival Time" then The "Start time" is equal to "Actual Arrival Time" .

and do not show JS Message below in CRM 365 and Filed service Mobile Application.StartTimebeforactualarrivaltime.jpg

 

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Disable/Stop builtin JS File in CRM 365 ?

    Either you have to modify the MS js file for that condition(i wouldnt suggest that to be honest). You can remove the js file and library from the form. Or you have to do what @Clofly Mao suggested, create custom fields to replicate the native function and base in on your logic.

    I hope this was helpful  

  • cloflyMao Profile Picture
    25,208 on at
    RE: Disable/Stop builtin JS File in CRM 365 ?

    Hi Partner,

    There are some threads for how to track relevant event/function of an element.

    https://stackoverflow.com/questions/23472334/how-to-find-what-code-is-run-by-a-button-element-in-chrome-using-developer-tools 

    https://stackoverflow.com/questions/18877190/chrome-debugging-break-on-next-click-event

    Unfortunately, I tried those method and it's hard to track save event code.

    The relevant libraries that appeared in dubugging process are not accessible in form properties setting, 

    and if we dis active them in web resources menu, it may cause potential issue.

    (I also notice a library called sdk.js is on Azure)

    My suggestion:

    You could create other 3 custom fields with same name to alternate Start Time/ End Time / Actual Arrival Time / Duration and hide the default,

    for original duration automatic calculation, you could set the new custom field as a calculated field to implement the origin function.

    Regards,

    Clofly

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 > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans