Re: Users' unintentional use of "Enter" causing data loss

Joel Palmius <[email protected]> Tue, 21 Mar 2006 12:26:37 +0100 (CET)
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
For the user-going-back problem, you can set CHECKKEY="no" in all pages 
but the last. This way you allow the user to go back and data will not be 
lost. The default behavior is to not allow respondents to go back and 
modify their answers.

You are pointing at a bug though. The user should be notified that his key 
is illegal when submitting. Did this not happen?

Note that the key thing only prevents DoS kind of attacks. It does not 
ensure that the user does not take the survey again once having finishing 
it.

All this is only valid for survey with more than one page. One-page 
surveys cannot be modified by going back. Further, there is no way to 
notify the respondent he is editing an invalid copy before submitting, 
since there is no page access to the server when going back (he simply 
picks the previous page from his local cache).

BugAnt: You did some stuff with key bindings for answering a survey. Any 
way to prevent enter from submitting form?

   // Joel


On Mon, 20 Mar 2006, Jennifer Kurkoski wrote:

> Hi all,
>
> I'm having two problems I'm hoping someone here can solve. This is the
> second (the first problem was in an ealier message).
>
> I'm running mod_survey version 3.2.2.
>
> If you accidentally hit "Enter" at any point when filling out the survey, it
> submits your data. You then likely hit the Back button and see that your
> data are still there, so you go ahead and finish completing the survey. And
> then you hit Submit. But mod_survey thinks you're trying to vote twice and
> so ignores your answers. For my purposes, this is *highly* undesirable. I
> don't expect people to fill it out twice and having the user be unaware that
> her data are being lost is a much worse situation. I have one record that
> contains only a username and nothing else, even though the timestamp
> indicates that the respondent spent around the same amt of time completing
> the survey as most others.
>
> No luck in the archives on this one either. Anyone have any idea what's
> going on?
>
> Many thanks (again)!!
>
> - Jennifer
>
>
> --
> For best results, follow directions on bottle ...
> and use my permanent address:
>     [email protected]
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion