Question
Trying to use a rule inside a validation
I have a validation on a dateField that I am trying to use a rule inside of the if statement. See below.
validations: {
if(
and(
rule!someRuleThatDoesntWorkHere(a, b, c),
rule!someRuleThatWorks(a)
),
"message goes here",
{}
)
}
I get a "Cast Invalid Could not cast from Rule or Function Reference to Boolean" when I add the first rule. Is there something I should look for specifically.
