-
Notifications
You must be signed in to change notification settings - Fork 35
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 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.shuffleQuestionsexists (internal model, line 26)PostHogDisplaySurveyAppearancedoes NOT includeshuffleQuestions- Note:
shuffleOptionson choice questions IS already exposed viaPostHogDisplayChoiceQuestionβ 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 whensurvey.appearance.shuffleQuestionsis true (andenable_partial_responsesis 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.