I'm having trouble setting formly form fields to disabled based on model properties and a boolean variable. The code snippet I've tried doesn't seem to be working as expected.
expressionProperties: {
'templateOptions.disabled': 'model.advancePayments && !model.deposit' || vm.acquisitionCancelledFlag
}
The code works, but the use of || vm.acquisitionCancelledFlag
is not affecting the outcome as intended.
Even though vm.acquisitionCancelledFlag
is true, the field remains enabled.
I also attempted:
'templateOptions.disabled': '(model.advancePayments && !model.deposit) || vm.acquisitionCancelledFlag'