Skip to content

Form Schema Examples

Use these examples when generating a complete form schema.

{
"title": "Contact form",
"description": "Send us a message.",
"pages": [
{
"name": "contact",
"elements": [
{ "type": "text", "name": "name", "title": "Name", "isRequired": true },
{ "type": "text", "name": "email", "title": "Email", "inputType": "email", "isRequired": true },
{ "type": "comment", "name": "message", "title": "Message", "isRequired": true }
]
}
]
}
{
"title": "Support request",
"pages": [
{
"name": "request",
"elements": [
{
"type": "radiogroup",
"name": "issueType",
"title": "What do you need help with?",
"choices": ["Billing", "Technical issue", "Other"],
"isRequired": true
},
{
"type": "comment",
"name": "technicalDetails",
"title": "Describe the technical issue",
"visibleIf": "{issueType} = 'Technical issue'",
"requiredIf": "{issueType} = 'Technical issue'"
}
]
}
]
}
{
"title": "Client intake",
"showQuestionNumbers": "off",
"pages": [
{
"name": "contact",
"title": "Contact details",
"elements": [
{ "type": "text", "name": "fullName", "title": "Full name", "isRequired": true },
{ "type": "text", "name": "email", "title": "Email", "inputType": "email", "isRequired": true }
]
},
{
"name": "project",
"title": "Project details",
"elements": [
{ "type": "comment", "name": "goals", "title": "Project goals", "isRequired": true },
{ "type": "dropdown", "name": "budget", "title": "Budget", "choices": ["Under $5k", "$5k-$10k", "$10k+"] }
]
}
]
}