diff --git a/apps/formbricks-com/components/engine/SurveyPage.tsx b/apps/formbricks-com/components/engine/SurveyPage.tsx index 6ea950b65b..66f6c1834b 100644 --- a/apps/formbricks-com/components/engine/SurveyPage.tsx +++ b/apps/formbricks-com/components/engine/SurveyPage.tsx @@ -94,6 +94,7 @@ export function SurveyPage({ setSubmission(updatedSubmission); try { sendToFormbricks(data); + await waitForAnimation(400); setSubmittingPage(false); onSubmit(updatedSubmission); plausible(`waitlistSubmitPage-${page.id}`); @@ -103,6 +104,9 @@ export function SurveyPage({ } }; + // set timeout promise + const waitForAnimation = (ms: number) => new Promise((res) => setTimeout(res, ms)); + const handleSubmitElement = () => { if (page.config?.autoSubmit && page.elements.length == 1) { formRef.current?.requestSubmit(); @@ -116,7 +120,9 @@ export function SurveyPage({ {page.elements.map((element) => { const ElementComponent = element.component; return ( -
+
{element.name ? (
diff --git a/apps/formbricks-com/pages/waitlist.tsx b/apps/formbricks-com/pages/waitlist.tsx index fb8f8cb785..1031060aac 100644 --- a/apps/formbricks-com/pages/waitlist.tsx +++ b/apps/formbricks-com/pages/waitlist.tsx @@ -52,7 +52,7 @@ const WaitlistPage = () => ( process.env.NODE_ENV === "production" ? "https://app.formbricks.com" : "http://localhost:3000" } formId={ - process.env.NODE_ENV === "production" ? "cld37mt2i0000ld08p9q572bc" : "cld2xwo2r000cu0mdkju2nj96" + process.env.NODE_ENV === "production" ? "cld37mt2i0000ld08p9q572bc" : "cldd3mrbs0007u0w0g2m6verd" } survey={{ config: { diff --git a/apps/web/src/components/FeedbackButton.tsx b/apps/web/src/components/FeedbackButton.tsx index e10813bcf5..95364d9e84 100644 --- a/apps/web/src/components/FeedbackButton.tsx +++ b/apps/web/src/components/FeedbackButton.tsx @@ -67,8 +67,8 @@ export function FeedbackButton() {