In VBS Redwood Action Date validation is not triggered in Hire an Employee
In VBS Redwood Action Date validation is not triggered in Hire an Employee:
Validation Rule is as below:
function runCondition(context) {
const { $componentContext, $fields, $modules, $user } = context;
let d = new Date($fields.employmentWhenAndWhy.ActionDate.$value());let sysdate = new Date();
if (d < sysdate) {
return true;
}
return false;
}
return { runCondition };
});
But the rule is not triggered after Publish.
Version (include the version you are using, if applicable):
26A
Tagged:
0