What you need to know
- Each example below is a complete definition that trulyform accepts and publishes. Tests save and publish every one of them exactly as shown here.
- Together they use every question type, every logic action, calculations and piped answers.
- The IDs are readable placeholders, but valid: any lowercase UUIDv7 works, and its timestamp part is not checked. If you add an example's questions to a form that already has content, give them fresh IDs so nothing collides, and update every reference to them in rules, calculations and answer tokens.
- Adapt the wording, questions and theme to the person's form. Remove what they do not need.
Workshop registration
A booking form where the ticket type changes which questions appear, and the ending shows the price.
It shows:
- two choice scores multiplied in a calculation: the ticket price and the number of people
- a show rule, a hide rule and a require rule driven by one choice
- piping a name and a calculation into the ending
- a dropdown, a date and a consent checkbox
Workshop registration definition
{
"schemaVersion": 2,
"mediaDefaults": {
"assetId": null,
"layout": "above",
"altText": ""
},
"welcome": {
"enabled": true,
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Pottery workshop sign-up"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Book your place in two minutes."}]}]},
"button": "Book a place"
},
"ending": {
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"You are booked in, "},{"type":"answerToken","attrs":{"source":"answer","ref":"01990000-0000-7000-8000-000000000101","fallback":"friend"}},{"type":"text","text":"!"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Total to pay on the day (USD): "},{"type":"answerToken","attrs":{"source":"calculation","ref":"01990000-0000-7000-8000-000000000131","fallback":"to be confirmed"}},{"type":"text","text":"."}]}]}
},
"fields": [
{
"id": "01990000-0000-7000-8000-000000000101",
"kind": "short_text",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"What is your full name?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000102",
"kind": "email",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"What is your email address?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"We send your booking confirmation here."}]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000103",
"kind": "single_choice",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Which ticket would you like?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [{"id":"01990000-0000-7000-8000-000000000111","label":"In person","score":"40"},{"id":"01990000-0000-7000-8000-000000000112","label":"Online","score":"15"}],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000104",
"kind": "single_choice",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"How many people are you booking for?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [{"id":"01990000-0000-7000-8000-000000000141","label":"1 person","score":"1"},{"id":"01990000-0000-7000-8000-000000000142","label":"2 people","score":"2"},{"id":"01990000-0000-7000-8000-000000000143","label":"3 people","score":"3"},{"id":"01990000-0000-7000-8000-000000000144","label":"4 people","score":"4"}],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000105",
"kind": "date",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Which session date suits you?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000106",
"kind": "multiple_choice",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Any dietary needs for lunch?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [{"id":"01990000-0000-7000-8000-000000000113","label":"Vegetarian"},{"id":"01990000-0000-7000-8000-000000000114","label":"Vegan"},{"id":"01990000-0000-7000-8000-000000000115","label":"Gluten free"}],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000107",
"kind": "phone",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Which number can we reach you on during the day?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000108",
"kind": "dropdown",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"How did you hear about us?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [{"id":"01990000-0000-7000-8000-000000000116","label":"Instagram"},{"id":"01990000-0000-7000-8000-000000000117","label":"A friend"},{"id":"01990000-0000-7000-8000-000000000118","label":"Search engine"},{"id":"01990000-0000-7000-8000-000000000119","label":"Other"}],
"rows": [],
"settings": {"nextButton":"Next","placeholder":"Choose one"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000109",
"kind": "consent",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Cancellation policy"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Book my place","label":"I understand bookings can be cancelled up to 48 hours before the session."},
"media": {"inherit":true,"assetId":null,"layout":"above"}
}
],
"theme": {
"preset": "warm",
"background": "#fffaf3",
"foreground": "#1f2933",
"primary": "#c2410c",
"buttonText": "#ffffff",
"font": "Inter",
"radius": 12,
"density": "comfortable",
"logoAssetId": null,
"backgroundAssetId": null
},
"settings": {
"allowReanswer": true,
"hiddenFields": [],
"fillLimit": null
},
"rules": [
{
"id": "01990000-0000-7000-8000-000000000121",
"sourceId": "01990000-0000-7000-8000-000000000103",
"targetId": "01990000-0000-7000-8000-000000000105",
"mode": "all",
"action": "hide",
"conditions": [{"fieldId":"01990000-0000-7000-8000-000000000103","operator":"eq","value":"01990000-0000-7000-8000-000000000112"}]
},
{
"id": "01990000-0000-7000-8000-000000000122",
"sourceId": "01990000-0000-7000-8000-000000000103",
"targetId": "01990000-0000-7000-8000-000000000106",
"mode": "all",
"action": "show",
"conditions": [{"fieldId":"01990000-0000-7000-8000-000000000103","operator":"eq","value":"01990000-0000-7000-8000-000000000111"}]
},
{
"id": "01990000-0000-7000-8000-000000000123",
"sourceId": "01990000-0000-7000-8000-000000000103",
"targetId": "01990000-0000-7000-8000-000000000107",
"mode": "all",
"action": "require",
"conditions": [{"fieldId":"01990000-0000-7000-8000-000000000103","operator":"eq","value":"01990000-0000-7000-8000-000000000111"}]
}
],
"calculations": [
{
"id": "01990000-0000-7000-8000-000000000131",
"name": "Total price",
"decimals": 2,
"expression": {"type":"multiply","args":[{"type":"option_score","ref":"01990000-0000-7000-8000-000000000103"},{"type":"option_score","ref":"01990000-0000-7000-8000-000000000104"}]}
}
]
}
Select the text to copy it.
Customer feedback
A short survey that asks detractors what to improve and averages a matrix of ratings.
It shows:
- a statement as an introduction
- NPS with a comment box
- a follow-up question shown only for scores of 6 or less
- an opinion scale turned into a score out of 10, a ranking, and a scored matrix averaged by a calculation
- starting without a welcome screen
Customer feedback definition
{
"schemaVersion": 2,
"mediaDefaults": {
"assetId": null,
"layout": "above",
"altText": ""
},
"welcome": {
"enabled": false,
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Customer feedback"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"button": "Start"
},
"ending": {
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Thank you for your feedback"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"We read every response."}]}]}
},
"fields": [
{
"id": "01990000-0000-7000-8000-000000000201",
"kind": "statement",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Thanks for helping us improve. This takes about a minute."}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [],
"rows": [],
"settings": {"nextButton":"Continue"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000202",
"kind": "nps",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"How likely are you to recommend us to a friend or colleague?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","lowLabel":"Not at all likely","highLabel":"Extremely likely","comment":true},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000203",
"kind": "long_text",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"What is the main thing we could do better?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","maxLength":1000,"placeholder":"Be as honest as you like"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000204",
"kind": "opinion_scale",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"How satisfied are you with our support team?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","min":1,"max":5,"lowLabel":"Very unsatisfied","highLabel":"Very satisfied"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000205",
"kind": "ranking",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Rank these from most to least important to you."}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [{"id":"01990000-0000-7000-8000-000000000211","label":"Price"},{"id":"01990000-0000-7000-8000-000000000212","label":"Ease of use"},{"id":"01990000-0000-7000-8000-000000000213","label":"Support"}],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000206",
"kind": "matrix",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"How would you rate each part of the product?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [{"id":"01990000-0000-7000-8000-000000000214","label":"Poor","score":"1"},{"id":"01990000-0000-7000-8000-000000000215","label":"Okay","score":"2"},{"id":"01990000-0000-7000-8000-000000000216","label":"Great","score":"3"}],
"rows": [{"id":"01990000-0000-7000-8000-000000000217","label":"Setup"},{"id":"01990000-0000-7000-8000-000000000218","label":"Reports"},{"id":"01990000-0000-7000-8000-000000000219","label":"Mobile app"}],
"settings": {"nextButton":"Send feedback"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
}
],
"theme": {
"preset": "paper",
"background": "#f5f7ff",
"foreground": "#111827",
"primary": "#4338ca",
"buttonText": "#ffffff",
"font": "Inter",
"radius": 16,
"density": "comfortable",
"logoAssetId": null,
"backgroundAssetId": null
},
"settings": {
"allowReanswer": true,
"hiddenFields": [],
"fillLimit": null
},
"rules": [
{
"id": "01990000-0000-7000-8000-000000000221",
"sourceId": "01990000-0000-7000-8000-000000000202",
"targetId": "01990000-0000-7000-8000-000000000203",
"mode": "all",
"action": "show",
"conditions": [{"fieldId":"01990000-0000-7000-8000-000000000202","operator":"lte","value":"6"}]
}
],
"calculations": [
{
"id": "01990000-0000-7000-8000-000000000231",
"name": "Product rating",
"decimals": 1,
"expression": {"type":"divide","args":[{"type":"option_score","ref":"01990000-0000-7000-8000-000000000206"},{"type":"constant","value":"3"}]}
},
{
"id": "01990000-0000-7000-8000-000000000232",
"name": "Support score out of 10",
"decimals": 0,
"expression": {"type":"multiply","args":[{"type":"answer","ref":"01990000-0000-7000-8000-000000000204"},{"type":"constant","value":"2"}]}
}
]
}
Select the text to copy it.
Job application
An application that skips a follow-up question, pipes the applicant’s name into a later question and records where they came from.
It shows:
- a skip rule that jumps past a follow-up question
- an earlier answer piped into a later question title
- website, number and file upload questions
- hidden fields for the source and job ID
- a compact theme with a serif font
Job application definition
{
"schemaVersion": 2,
"mediaDefaults": {
"assetId": null,
"layout": "above",
"altText": ""
},
"welcome": {
"enabled": true,
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Apply: Product designer"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"About five minutes. You can upload your CV at the end."}]}]},
"button": "Start application"
},
"ending": {
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Application received"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"We reply to every applicant within two weeks."}]}]}
},
"fields": [
{
"id": "01990000-0000-7000-8000-000000000301",
"kind": "short_text",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"What is your full name?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000302",
"kind": "email",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"What is your email address?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000303",
"kind": "website",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Where can we see your portfolio?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","placeholder":"yourname.com"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000309",
"kind": "number",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"How many years of design experience do you have?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","min":"0","max":"50","placeholder":"3"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000304",
"kind": "single_choice",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Have you worked on a remote team before?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [{"id":"01990000-0000-7000-8000-000000000311","label":"Yes"},{"id":"01990000-0000-7000-8000-000000000312","label":"No"}],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000305",
"kind": "long_text",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"How did your team stay in touch?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": false,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","maxLength":1500},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000306",
"kind": "long_text",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Thanks, "},{"type":"answerToken","attrs":{"source":"answer","ref":"01990000-0000-7000-8000-000000000301","fallback":"there"}},{"type":"text","text":". What draws you to this role?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","maxLength":3000},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000307",
"kind": "file_upload",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Upload your CV"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","maxFiles":1,"maxSizeMB":10,"accept":".pdf,.docx"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000308",
"kind": "consent",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Privacy"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Submit application","label":"You may keep my application for 12 months."},
"media": {"inherit":true,"assetId":null,"layout":"above"}
}
],
"theme": {
"preset": "paper",
"background": "#ffffff",
"foreground": "#0f172a",
"primary": "#047857",
"buttonText": "#ffffff",
"font": "Georgia",
"radius": 4,
"density": "compact",
"logoAssetId": null,
"backgroundAssetId": null
},
"settings": {
"allowReanswer": true,
"hiddenFields": [
"source",
"job_id"
],
"fillLimit": null
},
"rules": [
{
"id": "01990000-0000-7000-8000-000000000321",
"sourceId": "01990000-0000-7000-8000-000000000304",
"targetId": "01990000-0000-7000-8000-000000000306",
"mode": "all",
"action": "skip",
"conditions": [{"fieldId":"01990000-0000-7000-8000-000000000304","operator":"eq","value":"01990000-0000-7000-8000-000000000312"}]
}
],
"calculations": []
}
Select the text to copy it.
Contact request
The smallest useful form: three required questions, and an ending that greets the person by the name they typed.
It shows:
- required questions
- placeholder and maxLength settings
- an answer piped into the ending
Contact request definition
{
"schemaVersion": 2,
"mediaDefaults": {
"assetId": null,
"layout": "above",
"altText": ""
},
"welcome": {
"enabled": true,
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Get in touch"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Three quick questions. We reply within one working day."}]}]},
"button": "Start"
},
"ending": {
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Thanks, "},{"type":"answerToken","attrs":{"source":"answer","ref":"01990000-0000-7000-8000-000000000001","fallback":"there"}},{"type":"text","text":"!"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"We will reply to your email within one working day."}]}]}
},
"fields": [
{
"id": "01990000-0000-7000-8000-000000000001",
"kind": "short_text",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"What is your name?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next","placeholder":"Jane Smith"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000002",
"kind": "email",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"What is your email address?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"We only use it to reply to this message."}]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Next"},
"media": {"inherit":true,"assetId":null,"layout":"above"}
},
{
"id": "01990000-0000-7000-8000-000000000003",
"kind": "long_text",
"title": {"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"How can we help?"}]}]},
"description": {"type":"doc","content":[{"type":"paragraph","content":[]}]},
"required": true,
"options": [],
"rows": [],
"settings": {"nextButton":"Send message","maxLength":2000},
"media": {"inherit":true,"assetId":null,"layout":"above"}
}
],
"theme": {
"preset": "paper",
"background": "#ffffff",
"foreground": "#111827",
"primary": "#2563eb",
"buttonText": "#ffffff",
"font": "Inter",
"radius": 12,
"density": "comfortable",
"logoAssetId": null,
"backgroundAssetId": null
},
"settings": {
"allowReanswer": true,
"hiddenFields": [],
"fillLimit": null
},
"rules": [],
"calculations": []
}
Select the text to copy it.