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

Announcements

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

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    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

  • Suggested answer
    Community Member Profile Picture
    on at

    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  

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans