Question
Can I make a validation rule from local variables, like use operator?
a!localVariables(
local!fieldName:"5",
local!operator:">",
local!value:"2",
a!textField(
value: fv!item.fieldName,
saveInto: fv!item.fieldName,
validations: {
a!validationMessage(
message:"test",
showWhen: local!fieldName & local!operator & local!value
)
}
)
)This is an example of what I want to achieve, the operators can be different, the fieldValues & fieldName can be of the other fields. I want the showWhen condition to work even if I give it a string.
