I have a JS in a calculated value that I would like to populate a date field.
function setTextBoxDueDate(value) { NWF$('#'+ DueDate).val(value); }
But it doesn't seem to be working properly in the following case. The date field populates but it is ignoring the condition.
If(SpecialCondition=="Smoke alarms", setTextBoxDueDate(formatDate(dateAddDays(LeaseStartDate, 28), 'dd/MM/yyyy')), "")