In my fieldChanged
function, I m trying to DISABLE a date field through field.isDisabled = true;
The field gets disabled but the small calendar button on the right remains as it is, which lets the user select the date in the field.
My Code is:
if (cusStatus == 2 || cusStatus == 4 || cusStatus == 7) {
var compDate = currRec.getField({ fieldId: 'custrecord_sn_trf_dateoperation' });
compDate.isDisabled = true;
}
This works fine and disables the field, but the calendar button(on the right in the below image) remains there.
and user can even set the value through the calendar.
Can anyone suggest how to disable/remove this calendar?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.