Answered by:
Difference in behaviour of a two-option checkbox between UAT and PROD

Question
-
Hi,
We have a two-option (checkbox) control and have set it to run some code onchange.
Xrm.Page.getAttribute("new_checkboxField").addOnChange(DoSomething);
This works fine in DEV and UAT environments. We ensured UAT was at the same state as PROD by exporting the single Default Solution from PROD into UAT. However, when we apply our code to PROD we find that when the user checks the checkbox, he/she has to click somewhere else on the form (i.e. make the checkbox lose focus) to get the "DoSomething" code to run.
What could be causing this behaviour?
Thanks.
Maz
Tuesday, July 1, 2014 8:22 AM
Answers
-
The issue is caused by Internet Explorer's Tools, Compatibility View Settings. On PROD the "Display Intranet Sites in Compatibility View" was checked meaning the Document Mode of IE was 7.
On UAT the setting was not checked and Document mode was 9.
The link in my previous post does specifically state "One caveat: the behavior isn't supported by Internet Explorer 7 or 8. For these versions, the control reverts to prior behavior based on focus change."
Maz
- Marked as answer by MazP Wednesday, July 9, 2014 3:25 PM
Wednesday, July 9, 2014 3:25 PM
All replies
-
Hi Maz,
Are UAT and PROD on the same rollup of CRM?
~ Atomic Coder
Tuesday, July 1, 2014 8:29 AM -
Hi, both were at UR 15
Also, the only other thing we notice is that PROD has Microsoft Dynamics CRM 4.0 for Microsoft Outlook (4.0.7333.2747) installed
Maz
- Edited by MazP Tuesday, July 1, 2014 8:48 AM
Tuesday, July 1, 2014 8:41 AM -
Anybody have any ideas on this please? It does seem clear that UR 12 should have removed this issue.
If we don't see the issue on UAT, but we do on PROD, and both environments are at the same UR, what can be the cause(s)?
Maz
Thursday, July 3, 2014 10:03 AM -
The issue is caused by Internet Explorer's Tools, Compatibility View Settings. On PROD the "Display Intranet Sites in Compatibility View" was checked meaning the Document Mode of IE was 7.
On UAT the setting was not checked and Document mode was 9.
The link in my previous post does specifically state "One caveat: the behavior isn't supported by Internet Explorer 7 or 8. For these versions, the control reverts to prior behavior based on focus change."
Maz
- Marked as answer by MazP Wednesday, July 9, 2014 3:25 PM
Wednesday, July 9, 2014 3:25 PM