Enabling a readonly field based on codition
I have this working to some extent, I am currently using.....
function setDueDate() {
if (fd.field('ExtendDueDate').value() == '1') {
fd.field('DueDate').readonly(false);
} else {
fd.field('DueDate').readonly(true);
}
}
fd.field('ExtendDueDate').change(setDueDate);
setDueDate;
once opening my edit form, the first time I check the box nothing happens, I uncheck... when I check again that is when the read only field becomes editable and I can change the date..... where am I going wrong??
Cheers
John
function setDueDate() {
if (fd.field('ExtendDueDate').value() == '1') {
fd.field('DueDate').readonly(false);
} else {
fd.field('DueDate').readonly(true);
}
}
fd.field('ExtendDueDate').change(setDueDate);
setDueDate;
once opening my edit form, the first time I check the box nothing happens, I uncheck... when I check again that is when the read only field becomes editable and I can change the date..... where am I going wrong??
Cheers
John
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests