PostHog / PostHog/posthog-flutter
Support auto-submit on selection (skipSubmitButton)
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 97
- Forks
- 85
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 31
Description
🚨 IMPORTANT
This issue is likely user-facing in the main PostHog app, see surveyVersionRequirements.ts. If you delete or close this issue, be sure to update the version requirements list here.
Summary
The Flutter SDK does not support the skipSubmitButton feature for surveys. This feature allows single-choice, multiple-choice, and rating questions to automatically submit when a selection is made, without requiring the user to press a submit button.
Current State
- Flutter delegates survey functionality to native iOS/Android SDKs
- Neither native SDK currently supports
skipSubmitButton
Expected Behavior
When a question has skipSubmitButton: true:
- For single-choice questions: submit automatically when an option is selected
- For rating questions: submit automatically when a rating is selected
- The submit button should be hidden for these questions
Dependencies
This feature requires implementation in the underlying native SDKs first:
- iOS: https://github.com/PostHog/posthog-ios/issues/448
- Android: https://github.com/PostHog/posthog-android/issues/391
Once native SDKs support this feature, Flutter will need to:
- Update minimum native SDK version requirements in
ios/posthog_flutter.podspecandandroid/build.gradle - Update the Flutter survey widgets to handle auto-submission behavior
Reference Implementation
See posthog-js browser: packages/browser/src/extensions/surveys/components/QuestionTypes.tsx
Tracking
This is tracked in the survey SDK feature parity issue: https://github.com/PostHog/posthog/issues/45658
This issue was generated by Claude during a Surveys SDK audit.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked iOS and Android issues, since this Flutter work depends on native SDK support. Then review ios/posthog_flutter.podspec, android/build.gradle, the Flutter survey widgets, and the browser reference in packages/browser/src/extensions/surveys/components/QuestionTypes.tsx. Done means the minimum native versions and Flutter behavior support automatic submission and hide the submit button for the specified question types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, flutter, ios
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100