Hi All,
I want to convert (4.0 to 2015) below code as per MSCRM2015. Please help me.
function Form_onsave()
{
debugger;
var TYPECODE_EVENT = 3;
if (crmForm.all.typecode && crmForm.all.typecode.DataValue != TYPECODE_EVENT)
{
var clearFieldArray = new Array('msa_eventname', 'msa_publisheventdetailsonweb', 'msa_eventtopic', 'msa_eventdetails',
'msa_eventtype', 'msa_startdatetime', 'msa_enddatetime', 'msa_costofadmission', 'msa_location', 'msa_eventcontact',
'msa_eventsponsors','msa_additionalregistrationinformation','msa_eventcapacity');
for (var i = 0; i < clearFieldArray.length; i++)
{
if (crmForm.all[clearFieldArray[i]] != null)
crmForm.all[clearFieldArray[i]].DataValue = null;
}
}
}
*This post is locked for comments