How to reset / clear a survey so it can be taken multiple times?
See original GitHub issueAre you requesting a feature, reporting a bug or asking a question?
Asking a Question
I’m just wondering how to reset a survey once it’s done. I’m using the react version (1.1.12
). I have a survey that I want to use multiple times on a single page. I just need to know how to reset the form.
What is the current behavior?
When the form is completed, it shows the completion html (or nothing, if I specify showCompletedPage={false}
).
What is the expected behavior?
My desired behavior is that once the user completes a survey, the survey resets to its original blank state and the user can fill it out again.
P.S. Thanks for building survey.js, it’s really nice. I especially like the survey creator website. All around well done!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Clearing or Deleting Responses - SurveyMonkey Help
Go to the Collect Responses tab of your survey. Click . to the right of the Collector. Click Clear responses. Deleting All Responses...
Read more >Retake Survey Link - Qualtrics
Retake survey links allow you or your respondent to go back into a survey response and edit it after it has been submitted....
Read more >How to stop respondents from taking a survey more than once
If you are using custom variables in the survey URL, then you can prevent them from taking the survey multiples times by turning...
Read more >Adjust your form or quiz settings in Microsoft Forms
With Microsoft Forms, you can create a form (such as a survey or poll) or quiz ... to edit settings, and then select...
Read more >My respondents can't take my survey. How can I fix this?
1 Select your survey. · 2 From the left-hand navigation, click Settings, then Survey Behavior. · 3 Click Edit. · 4 In 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 FreeTop 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
Top GitHub Comments
I’d like to bump this, it’s still causing issues for me and my product. How can I clear the survey in React?
Does that
survey
variable come from a React ref?When I use a react ref, the
render()
function does work (The survey is coming back, yay!), butclear()
is having no effect (The values are all still present in the survey fields).Here is my code: