Terry M
07/15/2019, 8:34 PMvar checkbox = sublist.addField({
id : 'custbody_the_id',
label : 'Label Goes Here',
type : ui.FieldType.CHECKBOX
});
I add lines to this sublist from a saved search result:
for(var i = 0; i < results.length;i++){
sublist.setSublistValue({
id: 'id',
value: results[i].id,
line: i
});
}
I would like to conditionally disable the checkbox for a given row based on criteria. I have tried using:
checkbox.updateDisplayType({
id: 'custbody_the_id',
displayType: 'disabled',
line: i
});
However this disables the checkbox for the entire row. How can I target only specific checkboxes?Terry M
07/15/2019, 8:38 PMbattk
07/15/2019, 8:39 PMbattk
07/15/2019, 8:40 PMbattk
07/15/2019, 8:44 PMcreece
07/15/2019, 8:45 PMTerry M
07/15/2019, 8:46 PM