Nathan L
04/04/2024, 3:09 PMdialog
.confirm({
title: 'No End Date',
message: `Current Brokerage Contract ${isDuplicate.existingContract.name} has no end date.
If a new contract is created, current contract end date will be populated one day before start date of new contract.
Would you like to continue?`
})
.then((result) => {
if (result) {
currentRecord.setValue({
fieldId: contractFields.fields.closePreviousContract,
value: isDuplicate.existingContract.id
});
return true;
}
return false;
});
battk
04/04/2024, 4:02 PMNathan L
04/04/2024, 4:18 PMbattk
04/04/2024, 4:21 PMbattk
04/04/2024, 4:21 PMNathan L
04/04/2024, 4:21 PMdialog
.confirm({
title: 'No End Date',
message: `Current Brokerage Contract ${isDuplicate.existingContract.name} has no end date.
If a new contract is created, current contract end date will be populated one day before start date of new contract.
Would you like to continue?`
})
.then((result) => {
if (result) {
currentRecord.setValue({
fieldId: contractFields.fields.closePreviousContract,
value: isDuplicate.existingContract.id
});
document.getElementById('main_form').submit();
}