Skip to content

Surveys: Support shuffle questionsΒ #442

@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 posthog-android SDK does not support the shuffleQuestions survey appearance setting. The field is parsed from JSON into the internal SurveyAppearance model, but it is NOT exposed in the public PostHogDisplaySurveyAppearance model, so delegate developers cannot access this information.

Current State

  • SurveyAppearance.shuffleQuestions exists (internal model, line 26)
  • PostHogDisplaySurveyAppearance does NOT include shuffleQuestions
  • Note: shuffleOptions on choice questions IS already exposed via PostHogDisplayChoiceQuestion β€” this issue is only about the survey-level question shuffling

Expected Behavior

When survey.appearance.shuffleQuestions is true, the survey questions should be presented in a randomized order to the delegate developer (either by shuffling in the SDK before passing to the delegate, or by exposing the flag so the developer can shuffle).

Reference Implementation

See posthog-js browser: packages/browser/src/extensions/surveys/surveys-extension-utils.tsx

  • getDisplayOrderQuestions() shuffles questions when survey.appearance.shuffleQuestions is true (and enable_partial_responses is false)

Tracking

This is tracked in the survey SDK feature parity issue: PostHog/posthog#45658

This issue was generated by Claude using the /survey-sdk-audit skill.

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