Skip to content

Instantly share code, notes, and snippets.

@mrnkr
Created November 9, 2020 12:29
Show Gist options
  • Save mrnkr/0b07d835a7cd224871cc56417c49bca7 to your computer and use it in GitHub Desktop.
Save mrnkr/0b07d835a7cd224871cc56417c49bca7 to your computer and use it in GitHub Desktop.
Compute value form.io - this calculation will be performed on build time and the result will be stored in the db, not the logic to compute it
{
"key": "customConditional",
"type": "hidden",
"input": false,
"clearOnHide": false,
"calculateValue": {
"==": [
{ "==": [{ "var": "component.conditional.show" }, "true"] },
{ "==": [{ "var": "data[component.conditional.when].value" }, { "var": "component.conditional.eq" }] },
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment