Решение было следующим:
var timeField = crmForm.all.scheduledstart.all.time;
timeField.allowValueEdit = false;
var tables = timeField.getElementsByTagName("table");
if ((tables != null) && (tables.length > 0)) {
var table = tables[1];
while (table.firstChild != null) {
table.removeChild(table.firstChild);
}
for (hour = 9; hour <= 18; hour++) {
var row = table.insertRow();
var cell = row.insertCell();
var time = hour + ":00";
cell.setAttribute("val", time);
cell.innerText = time;
}
}
Но после добавления своего кода и скрытия различных кнопок перестали работать бизнес правила на завершение задач
|