Hello,
I am trying to add validation in the "Resources" tab of the task editor to make sure that all selected assignees meet our custom criteria. I was able to add the custom validation and successfully mark the field as valid/invalid based on the results of the validation function as follows:
resourcesTab: {
title: 'Assignees',
showUnits: false,
items: {
grid: {
columns: {
data: {
resource: {
text: 'Assignee',
finalizeCellEdit: () => {
// perform validation
},
},
units: false,
},
},
},
},
},
However, the issue is that when a field is marked as invalid, it does not disable the Task Editor save button. If the user clicks the save button, it won't save the invalid data, but it will save whatever the last valid state happened to be, which can lead to unexpected behavior. Is there a way to make sure that if a field is marked as invalid using finalizeCellEdit, to make sure that the Task Editor "Save" button is disabled until the error is resolved?