You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!