Hi
I am trying to create a simple alert as an onload event on the contact entity. However, I only want this to trigger if one of the conditions is that the contact is still active.
I therefore put it the following:
if (crmForm.all.statecode.DataValue == 0)
{
alert("'Whatever alert I want") ;
}
However, when I load the contact record it errors. Is it not possible to base an 'if' statement on the status.
Thanks