form.yaml
version: 1
title: "Referral source"
description: "A simple form with a free-text Other option."
sections:
- id: section_1
title: "Your details"
fields:
- id: referral_source
type: single_select
label: "How did you hear about us?"
options:
- "Search engine"
- "Social media"
- "Friend or colleague"
- "Advertisement"
# Adds an Other option with a free-text input.
allow_other: true
validators:
- required
next: done