Documentation Index
Fetch the complete documentation index at: https://docs.firstflow.app/llms.txt
Use this file to discover all available pages before exploring further.
Survey renders a survey experience directly, without requiring FirstflowWidget. Use it to embed a survey in a modal, drawer, or any custom container.
Usage
Props
The ID of the survey experience to render. Find the experience ID in the Dashboard under the experience settings.
Controls how questions are displayed:
paginated— one question at a time, with a next/back navigationall— all questions visible at once, submitted as a single form
Called when the user submits the survey. Use this to close the container.
Called when the user dismisses the survey without submitting.
Notes
Surveymust be rendered insideFirstflowProvider- The survey experience must have status
activein the Dashboard - Survey answers are submitted to the Firstflow API and trigger
survey.submittedandsurvey.answerwebhook events - For a fully custom survey UI (custom question rendering, custom layout), use
useFirstflowSurvey()