diff --git a/frontend/__snapshots__/scenes-app-surveys--new-survey-customisation-section--dark.png b/frontend/__snapshots__/scenes-app-surveys--new-survey-customisation-section--dark.png index 0f50696080755..4251781ca3742 100644 Binary files a/frontend/__snapshots__/scenes-app-surveys--new-survey-customisation-section--dark.png and b/frontend/__snapshots__/scenes-app-surveys--new-survey-customisation-section--dark.png differ diff --git a/frontend/__snapshots__/scenes-app-surveys--new-survey-customisation-section--light.png b/frontend/__snapshots__/scenes-app-surveys--new-survey-customisation-section--light.png index 192fa6f7f3352..c6b6932c294ed 100644 Binary files a/frontend/__snapshots__/scenes-app-surveys--new-survey-customisation-section--light.png and b/frontend/__snapshots__/scenes-app-surveys--new-survey-customisation-section--light.png differ diff --git a/frontend/src/scenes/surveys/SurveyCustomization.tsx b/frontend/src/scenes/surveys/SurveyCustomization.tsx index 5e5e224819788..f339e4798c97e 100644 --- a/frontend/src/scenes/surveys/SurveyCustomization.tsx +++ b/frontend/src/scenes/surveys/SurveyCustomization.tsx @@ -2,6 +2,7 @@ import { LemonButton, LemonCheckbox, LemonInput, LemonSelect } from '@posthog/le import { useValues } from 'kea' import { PayGateMini } from 'lib/components/PayGateMini/PayGateMini' import { upgradeModalLogic } from 'lib/components/UpgradeModal/upgradeModalLogic' +import { surveyLogic } from 'scenes/surveys/surveyLogic' import { AvailableFeature, @@ -25,6 +26,10 @@ interface WidgetCustomizationProps extends Omit @@ -117,9 +122,9 @@ export function Customization({ appearance, surveyQuestionItem, onAppearanceChan checked={appearance?.whiteLabel} /> -
Shuffle questions diff --git a/frontend/src/scenes/surveys/surveyLogic.tsx b/frontend/src/scenes/surveys/surveyLogic.tsx index b66a5326228a3..0380002ba501b 100644 --- a/frontend/src/scenes/surveys/surveyLogic.tsx +++ b/frontend/src/scenes/surveys/surveyLogic.tsx @@ -854,6 +854,12 @@ export const surveyLogic = kea([ return !!(survey.start_date && !survey.end_date) }, ], + surveyShufflingQuestionsAvailable: [ + (s) => [s.survey], + (survey: Survey): boolean => { + return survey.questions.length > 1 + }, + ], showSurveyRepeatSchedule: [(s) => [s.schedule], (schedule: ScheduleType) => schedule == 'recurring'], descriptionContentType: [ (s) => [s.survey],