Skip to content

Commit

Permalink
feat(surveys): added close button text customization feature (#23501)
Browse files Browse the repository at this point in the history
Co-authored-by: Juraj Majerik <[email protected]>
  • Loading branch information
dmarticus and jurajmajerik authored Jul 8, 2024
1 parent 2b4e9a1 commit 77cd3c2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions frontend/src/scenes/surveys/SurveyEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,25 @@ export default function SurveyEdit(): JSX.Element {
textPlaceholder="ex: We really appreciate it."
/>
</LemonField.Pure>
<LemonField.Pure
className="mt-2"
label="Button text"
>
<LemonInput
value={
survey.appearance
.thankYouMessageCloseButtonText
}
onChange={(val) =>
setSurveyValue('appearance', {
...survey.appearance,
thankYouMessageCloseButtonText:
val,
})
}
placeholder="example: Close"
/>
</LemonField.Pure>
<LemonField.Pure className="mt-2">
<LemonCheckbox
checked={
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,7 @@ export interface SurveyAppearance {
thankYouMessageHeader?: string
thankYouMessageDescription?: string
thankYouMessageDescriptionContentType?: SurveyQuestionDescriptionContentType
thankYouMessageCloseButtonText?: string
autoDisappear?: boolean
position?: string
shuffleQuestions?: boolean
Expand Down

0 comments on commit 77cd3c2

Please sign in to comment.