(Disabled) Business Required Fields

Friday, January 25th, 2008

If you disable a Business Required field, it is no longer Business Required. So the field can be empty if you save the Form.An easy way to solve this is to manually check the Required condition on the onSave of the form.
If the field is empty the onSave is stopped.

if (crmForm.all.new_requiredfield.DataValue == null)
{
alert ("You must create this record related to its parent, the required field will be mapped.");
event.returnValue = false;
return false;
}