-
Notifications
You must be signed in to change notification settings - Fork 509
-
Hi,
How to implement the date Validation ?
How can we make the value attribute dynamic?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments
-
Hi,
I was trying to implement the same thing, and I used new Date("<dateString>").valueOf() and used it with the existing operators.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
-
In order to make the value attribute inside your conditions dynamic use the Fact() with asynchronous call to load you fact and inside the condition you can spcify it as follows:
let rule = new Rule({
conditions: {
all: [{
fact: "TEST_FACT_01",
operator: "equal",
value: {
fact: "TEST_FACT_02",
}
}]
}
}
path and param helpers are availble inside the rule for both fact and value.
Reference: #274 (comment)
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment