Replies: 1 comment
-
Yes, but you need slightly modify config for func: // modules/config/funcs.js
const LOWER = {
label: "Lowercase",
mongoFunc: "$toLower",
jsonLogic: "toLowerCase",
spelFunc: ".toLowerCase",
//jsonLogicIsMethod: true, // Removed in JsonLogic 2.x due to Prototype Pollution
jsonLogicCustomOps: {
toLowerCase: (str) => str.toLowerCase(),
},
returnType: "text",
args: {
str: {
label: "String",
type: "text",
-- valueSources: ["value", "field"],
++ valueSources: ["value", "field", "func"],
},
}
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Guys, Can we implement multiple functions rule on same field? Example use LOWERCASE and also SUBSTRING on username field?
Beta Was this translation helpful? Give feedback.
All reactions