From 6650e374dba71a0362f9df3383d6709b4f529b0f Mon Sep 17 00:00:00 2001 From: Li Yi Yu Date: Wed, 15 Nov 2023 10:44:40 -0500 Subject: [PATCH] fix(surveys): button text field fix (#899) --- src/extensions/surveys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/surveys.ts b/src/extensions/surveys.ts index b8c6148a3..6cfab5d7c 100644 --- a/src/extensions/surveys.ts +++ b/src/extensions/surveys.ts @@ -843,7 +843,7 @@ export const createMultipleQuestionSurvey = (posthog: PostHog, survey: Survey) = const questionElementSubmitButton = questionElement.getElementsByClassName( 'form-submit' )[0] as HTMLButtonElement - questionElementSubmitButton.innerText = 'Next' + questionElementSubmitButton.innerText = question.buttonText || 'Next' questionElementSubmitButton.type = 'button' questionElementSubmitButton.addEventListener('click', () => { nextQuestion(idx, survey.id)