if (crmForm.all.customerid.DataValue != null && crmForm.all.customerid.DataValue[0] != null) { //вытаскивание телефона, запись в необходимое поле }