We want to implement a feature where Customer would have an option to Dismiss the Survey Form by clicking on the "Dismiss" Button. And if he/she does "Dismiss" the Survey Form, then we want that Neither the Survey Form Nor the Survey Trigger Link be displayed to the Customer for XX amount of Days (Example 30 days).Does Typeform supports this kind of feature? Or do we need to add custom solution within our Storefront to hide/display the button based on cookie.
Answered
Manage Hide/Display of Typeform Button
Best answer by mathio-tf
Hello
You can implement this with custom JavaScript and cookies.
If you are embedding as widget you can use custom button and set a cookie when the button is clicked. If you are embedding as popup (slider, popover or side tab) you can also set the cookie when the form is closed (in onClose
callback).
I think code for a solution like this is available somewhere in the community already. However I can not find it, so I have decided to publish it here:
- code: https://github.com/mathio/typeform-embed/blob/main/html/hide-via-cookie.html
- preview: https://mathio.github.io/typeform-embed/html/hide-via-cookie.html
Hope this helps.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.