Skip to content
Open Cloud
All templates

Registration 2 steps · 6 fields

Event RSVP

Yes or no first. Guests and dietary needs only appear for people who are coming.

Get a hosted link and a responses inbox in a minute. No backend, no credit card.

Or set it up yourself

Open in playground

Live preview

Form definition JSON · 77 lines
{  "id": "event-rsvp",  "formatVersion": "1.1",  "title": "RSVP",  "submit": { "label": "Send RSVP" },  "steps": [    {      "id": "reply",      "title": "Your reply",      "fields": [        {          "key": "name",          "type": "text",          "label": "Full name",          "validation": { "required": true }        },        {          "key": "email",          "type": "email",          "label": "Email",          "inputMode": "email",          "validation": { "required": true }        },        {          "key": "attending",          "type": "radio",          "label": "Will you be there?",          "options": [            { "value": "yes", "label": "Yes, I’ll be there" },            { "value": "no", "label": "Sorry, I can’t make it" }          ],          "validation": { "required": true }        }      ]    },    {      "id": "details",      "title": "Your party",      "show": [{ "field": "attending", "eq": "yes" }],      "fields": [        {          "key": "dietary",          "type": "text",          "label": "Any dietary needs for you?"        },        {          "key": "guests",          "type": "group",          "label": "Who else is coming?",          "itemLabel": "Guest {index}",          "addLabel": "Add a guest",          "defaultItems": 0,          "validation": { "maxLength": 9 },          "fields": [            {              "key": "guestName",              "type": "text",              "label": "Full name",              "validation": { "required": true }            },            {              "key": "guestDiet",              "type": "text",              "label": "Dietary needs"            }          ]        },        {          "key": "note",          "type": "textarea",          "label": "A note for the hosts",          "rows": 3        }      ]    }  ]}

Use it with the npm packages ​

Copy the JSON into a file in your app, install the renderer and pass the definition to it. The same JSON works with @formhaus/vue.

sh
npm i @formhaus/core @formhaus/react
tsx
import { FormRenderer } from '@formhaus/react';
import '@formhaus/core/style.css';
import definition from './form.json';

export function Form() {
  return (
    <FormRenderer
      definition={definition}
      onSubmit={(values) => console.log(values)}
    />
  );
}

See Getting started for validation, steps and custom components.