0
votes

When creating a quick campaign in Dynamics CRM 4.0 the onload javascripts for appointment, phone call etc. (5 in total) are retrieved and run. In the onLoad scripts for these activity types we hide some fields, however these fields are not actually there when opening the Quick Campaign wizard, and the javascript throws an error.

enter image description here

FormType is 1 (meaning Create), and ObjectTypeCode is the type code for the javascript loaded, so none of these fields give me the context. How can I determine in the onLoad javascripts which setting/context I am in? Are there any global variables that indicate that the context is "Quick Campaign Wizard"?

1

1 Answers

0
votes

Edit the script and add a truth test before trying to access the properties of the null object

crmForm.all.tab2Tab && crmForm.all.tab2Tab.style.bla='something';