Import and export CSV
Use form0 schema export to create a CSV representation of a JSON schema and form0 schema import
to convert it back to JSON.
Both commands support explicit input or output paths and --force for intentional replacement.
Validate and review the generated schema after converting it.
Hidden-value column
The CSV has a visible_preserve_value column, right after visible_conditions. Use it to set
what happens to a value when its field is hidden:
| Cell | Result |
|---|---|
| Empty | The attribute is left out, so the value is kept. |
true | The value is kept. |
false | The value is cleared when the field is hidden. |
Fill it in only for input fields. Leave it empty for sections, calculated fields, and title and status rows.
Try it
You need form0-cli.
-
Download an example form and export it. The
emailfield sets the attribute, and thephonefield does not:Code -
Open
hidden-value.csv. Thevisible_preserve_valuecolumn showsfalseforemailand is empty forphone. -
Import the CSV into a new file:
CodeIn
hidden-value-copy.json,emailhas"visible_preserve_value": false, andphonehas no such attribute.