Tip #63: Execute javascript code during debug session

Changing current frame in IE

There are times when you want to quickly test out a piece of form Javascript code in the Developer Tools console. Microsoft Dynamics CRM 2013 renders form content in frames and you have to prefix frames[0] or frames[1] to “Xrm.” to get the code running. In Chrome you can choose the target frame that you […]

Tip #28: Beware of autosave in your scripts

CRM 2013 introduced autosave feature that, depending on a specific scenario, could be really helpful. There is also ability to switch autosave off across the organization using Administrator > System Settings dialog. Unfortunately, this flag only controls form behavior when user explicitly edits the record. The record will still be saved if user navigates away […]

Tip #20: Use alertDialog and confirmDialog to display messages to users

If your javascript code is peppered with alerts and confirms, it’s time to stock up on the invigorating drink of your choice and rewrite. The reason is very simple – CRM for tablets does not like anything that blocks execution. New stablemates are alertDialog and confirmDialog – use them to display messages to users and […]