formio/ai / plugin/skills/formio-form
formio-form
VerifiedEmbed and render Form.io forms in any web app with the `@formio/js` renderer — by URL or JSON, pre-filled, controlled from JavaScript — and own field behavior: conditionals, calculated values, JSON Logic validation, cascading selects. The default "embed a form" entry point. Use when the user asks to "embed a form", "render a form", "add this form to my page", "pre-fill a form", "show or hide a field based on another field", "calculate a field value", "add custom validation to a field", or add conditional wizard pages — field behavior in ANY framework's form stays here. Not for: Angular (see `formio-angular`) or React-named (see `formio-react`) embedding; building an app (see `formio-application`) or its data model (see `formio-resource-planner`); REST endpoints (see `formio-api`); the raw SDK (see `formio-sdk`); creating a new form (see `formio-form-builder`); agent-filled forms or chats (see `formio-uag`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 15.4 KB |
| references/calculated-values.md | markdown | 1.8 KB |
| references/conditionals.md | markdown | 2.0 KB |
| references/external-data.md | markdown | 7.9 KB |
| references/field-logic.md | markdown | 4.0 KB |
| references/javascript-api.md | markdown | 3.6 KB |
| references/json-logic.md | markdown | 3.2 KB |
| references/options.md | markdown | 2.5 KB |
| references/rendering.md | markdown | 2.9 KB |
| references/setup.md | markdown | 5.0 KB |
| references/validation.md | markdown | 2.2 KB |
| references/wizards.md | markdown | 3.3 KB |
references/json-logic.md
View on GitHub# JSON Logic Primer for the Renderer
## Overview
Three component properties evaluate [JSON Logic](https://jsonlogic.com) expressions — `validate.json`, `conditional.json`, and `calculateValue` — plus `logic` entries with a `json` trigger. This primer covers the operations vocabulary once; the consumer docs ([validation.md](./validation.md), [conditionals.md](./conditionals.md), [calculated-values.md](./calculated-values.md), [field-logic.md](./field-logic.md)) show where each expression plugs in.
A JSON Logic expression is a JSON object whose single key is the operator and whose value is the argument list:
```json
{ "===": [{ "var": "data.employed" }, "yes"] }
```
## `var` — resolving data
`var` reads a value out of the evaluation context. The renderer supplies two roots — `data` (the whole submission) and `row` (the contextual row):
| Path | Resolves to |
| --- | --- |
| `data.<key>` | the submission data (any field on the form) |
| `row.<key>` | the contextual row — inside a Data Grid / Edit Grid, the current row's fields; elsewhere identical to `data` |
| `input` | (`validate.json` only) the value of the component being validated |
| `_` | lodash, exposed for expressions that need it |
```json
{ "var": "data.quantity" }
{ "var": "row.lineTotal" }
{ "var": "input" }
```
## Operations
Full reference: [jsonlogic.com/operations.html](https://jsonlogic.com/operations.html). The ones that matter in form definitions:
| Category | Operators |
| ---------- | --------------------------------------------------------------- |
| Comparison | `==`, `===`, `!=`, `!==`, `>`, `>=`, `<`, `<=` |
| Logic | `if`, `and`, `or`, `!`, `!!` |
| Numeric | `+`, `-`, `*`, `/`, `%`, `min`, `max` |
| Array | `in`, `map`, `filter`, `reduce`, `merge`, `all`, `some`, `none` |
| String | `cat`, `substr`, `in` |
| Data | `var`, `missing`, `missing_some` |
`if` takes `[condition, thenValue, elseValue]` — condition/value pairs chain for else-if. This is the backbone of `validate.json` (see [validation.md](./validation.md)):
```json
{ "if": [{ "===": [{ "var": "input" }, "Bob"] }, true, "Your name must be 'Bob'!"] }
```
`reduce` folds an array — e.g. summing a Data Grid column into a total:
```json
{
"reduce": [
{ "var": "data.lineItems" },
{ "+": [{ "var": "accumulator" }, { "var": "current.amount" }] },
0
]
}
```
`missing` returns the listed keys that have no value — handy for "all of these are filled in" checks:
```json
{ "!": { "missing": ["data.firstName", "data.lastName"] } }
```
## Where each expression runs
| Property | Expression result | Documented in |
| --- | --- | --- |
| `validate.json` | `true` = valid; a string = the error message | [validation.md](./validation.md) |
| `conditional.json` | truthy = show the component | [conditionals.md](./conditionals.md) |
| `calculateValue` | becomes the component's value | [calculated-values.md](./calculated-values.md) |
| `logic[].trigger.json` | truthy = fire the entry's actions | [field-logic.md](./field-logic.md) |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |