Skip to content

Support auto-submit on selection (skipSubmitButton) #262

@adboio

Description

@adboio

🚨 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:

Once native SDKs support this feature, Flutter will need to:

  1. Update minimum native SDK version requirements in ios/posthog_flutter.podspec and android/build.gradle
  2. 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: PostHog/posthog#45658

This issue was generated by Claude during a Surveys SDK audit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions