embed: [BUG] Typeform localStorage stays around for a recurring form
Describe the bug We have a Typeform that will be used every week. When filling out the form, the answers for that form are populated with last weeks answers.
To Reproduce Steps to reproduce the behavior:
- Create a Typeform with the same ID
- Submit the form successfully
- Open up the form again
Expected behavior Answers from the last submission should not be populated
Current behavior Answers from the last submission are filled out completely on the new form
Desktop (please complete the following information):
- OS: macOS
- Browser: Edge-Chromium / Chrome / Safari
- Embed SDK Version: 0.25.6
Additional context
I am using the makeWidget
.
Thanks!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (4 by maintainers)
localStorage
I think the issue with localStorage was that the redirect happened too soon.
As @adilanchian correctly pointed out,
redirectAfterSubmitUrl
is set up via Typeform admin UI when you create form.transferableUrlParameters
You can find examples in the demo directory:
Specified query params from your host page will be appended to form URL and available either as hidden field (if you set it up in your form) or in your form integration (eg.
utm_source
in Google Analytics integration).