Skip to main content
Answered

Can you disable partial completion?

  • Feb 25, 2021 1:05 AM UTC
  • 9 replies
  • 631 views

We’re using the Typeform embed API to display a form on our website. If the user does not complete the form, their partial responses are kept and pre-filled the next time they start the form. Is there a way to disable this so that each time the form is started, it is completely empty without the previous partial answers?

Best answer by picsoung

Hey @Aaron 
This is a new feature we just released that should help most people but I understand it might fit your need.

One way to do this would be to add a line in your code to delete localstorage (where the partial responses are stored in respondent’s browser)

localStorage.clear();

But if you are embedding your form, I believe partial responses should not be stored 🤔

View original

9 replies

picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • Answer
  • Feb 25, 2021 2:54 AM UTC

Hey @Aaron 
This is a new feature we just released that should help most people but I understand it might fit your need.

One way to do this would be to add a line in your code to delete localstorage (where the partial responses are stored in respondent’s browser)

localStorage.clear();

But if you are embedding your form, I believe partial responses should not be stored 🤔


  • Author
  • Explorer
  • Feb 26, 2021 9:01 PM UTC

This is very helpful. Thank you. A follow-up question though. Will this affect hidden fields that are passed to my form?


picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • Feb 27, 2021 12:24 AM UTC

@Aaron, not it wont. Hidden values will be taken into account regardless.


  • Navigating the Land
  • Mar 7, 2022 8:21 AM UTC

Hi, might be a stupid question, but how do you access the local storage of another domain (the opened Typeform page)?


picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • Mar 8, 2022 3:30 AM UTC

Hi, might be a stupid question, but how do you access the local storage of another domain (the opened Typeform page)?

I believe localstorage is unique per protocol, host & port.
It’s like cookies, you are only allowed to edit the ones you own, so your own domain.

So my previous solution won’t work 🤦‍♂️
Maybe that could be something we expose in the Embed SDK, what do you think @mathio ?


  • Navigating the Land
  • Mar 8, 2022 8:02 AM UTC

Hi picsoung,

That would be great, or even a query string parameter could work.


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Mar 8, 2022 9:08 AM UTC

Hello @Werner1234 @picsoung 👋 

This feature has been in between teams and on the bottom of the priority list until now. We will likely be able to move this feature forward in Q2 2022.

We will post our progress on Github: https://github.com/Typeform/embed/issues/215


  • Navigating the Land
  • Jan 21, 2023 1:12 AM UTC

We have an issue with this too. I posted in the embed repo as well, but it’s a big security risk, as anyone who uses the computer when there is an uncompleted form can read the previous user’s answers. Do we have an update?


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Jan 23, 2023 10:27 AM UTC

Update: The feature is ready to be reviewed by respective teams and could be released as soon as this week. See conversation on GIthub.