[BUG] Typeform localStorage stays around for a recurring form
See original GitHub issueDescribe 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!
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (1 by maintainers)
Top Results From Across the Web
Can you disable partial completion? - Typeform Community
We're using the Typeform embed API to display a form on our website. If the user does not complete the form, their partial...
Read more >Local Storage isn't storing the value in input field on refresh
I'm trying storeName.value = localStorage.getItem for values to stay there but it's not working. const storeName = document.querySelector( ...
Read more >10-K - SEC.gov
Portions of the registrant's amendment to this Annual Report on Form 10-K or ... Program Accelerator: Enables companies to launch recurring customer ...
Read more >Pro NoCoders Office Hours Ep. 300 | Office Hours are held six times ...
You can see this type form is embedded here, right? ... can't wrap my head around is how they're doing this. ... And...
Read more >32 Google Drive Tips You've Probably Never Heard Before
While converting the document makes it easier to collaborate around and edit from your mobile, Google Docs and Spreadsheets still don't have the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

localStorage
I think the issue with localStorage was that the redirect happened too soon.
As @adilanchian correctly pointed out,
redirectAfterSubmitUrlis 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_sourcein Google Analytics integration).Closing, localStorage issue is resolved. If you have other issues feel free to open a new issue.