One of the most fascinating things I found during the creation of the CRM Migration Assistant is the different methods developers use to access CRM form fields, and other form elements.
This is the normal and perfectly acceptable (and supported) method for referencing CRM form fields.
But, for various reasons, I’ve also seen fields reference using these crmForm methods:
crmForm.elements[“name”] crmForm.all[“name”] crmForm[“name”]
The real question is: Will these methods continue to work when the organization is upgraded to CRM 2011?
This means referencing all of your form fields using the standard access model:
Other options may or may not work correctly. Your experience my vary depending on which of the above methods were used.
Fortunately, the CRM Migration Assistant converts all of these “unsupported” form field access types into fully-supported CRM 2011 code using Xrm.Page.getAttribute and Xrm.Page.getControl, depending on how the field was being used.
If you run into any conversion issues, send me a code sample so that I can update the conversion process.