Paths

Paths

Every answer goes to its section's path, then its field's path, then its key.

The rule

An answer goes to the section's path, then the field's path, then the field's key. A section without path starts at its own key.

{
  key: "cafe",
  path: "extensions.demo.cafe_detail",
  fields: [
    { key: "name", type: "text", label },
    { key: "phone", type: "text", path: "contact", label },
  ],
}
{
  "extensions": {
    "demo": {
      "cafe_detail": {
        "name": "Angkor Café",
        "contact": { "phone": "+85512345678" }
      }
    }
  }
}

Lists

PathMeans
items[]one item per pick or row
items[0]the first item
items{n}items1, items2, one key per row
items[code=OTHER]the item whose code is OTHER

The exact place

at is the exact place, for an answer that cannot be a key inside an object, or one sent to two places. It is relative to the section's path, and the key is not added.

{
  key: "accepted",
  type: "checkbox",
  at: ["consent.accurate", "consent.responsible"],
  label,
}

Fixed values

payload on the form adds values every submission sends, like a service code.