From 98f0b9f85970e943eded3c9564578036448f7b5c Mon Sep 17 00:00:00 2001
From: Li Yi Yu
Date: Mon, 9 Oct 2023 20:25:30 -0400
Subject: [PATCH] feat(surveys): optional questions for multipleq (#17830)
---
frontend/src/scenes/surveys/Survey.tsx | 8 ++++++++
frontend/src/types.ts | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/frontend/src/scenes/surveys/Survey.tsx b/frontend/src/scenes/surveys/Survey.tsx
index 052c561061726..100177211fb7b 100644
--- a/frontend/src/scenes/surveys/Survey.tsx
+++ b/frontend/src/scenes/surveys/Survey.tsx
@@ -192,6 +192,14 @@ export function SurveyForm({ id }: { id: string }): JSX.Element {
]}
/>
+ {survey.questions.length > 1 && (
+
+
+
+ )}
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 3d4cbbcde9c45..4262bdfc5ae17 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -2159,7 +2159,7 @@ export interface SurveyAppearance {
export interface SurveyQuestionBase {
question: string
description?: string | null
- required?: boolean
+ optional?: boolean
}
export interface BasicSurveyQuestion extends SurveyQuestionBase {