Hi,
I've created a webform with the limitation to one submission ever! this works fine for authenticated users but not for anonymous users. If an anonymous user submit for the first time he get an error that he finally has submitted but this is not correct. If I set the limit to 2, it works the way it should work with the limitation for 1. is there any solution for this problem?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | webform2_submission_limit.patch | 1.01 KB | quicksketch |
Comments
Comment #1
mandclu commentedAgreed, I'm experiencing this same issue. It would seem the module treats all anonymous users as the same user, which I doubt is really the expected behaviour. It would be better if some other means of enforcing the limitation could be used for anonymous users, such as the value of a specified field (i.e. email address), a cookie, or even an IP address.
Comment #2
kalee commentedi hope somebody would find a way to enforce the limitation using a id or the email address instead of the IP address or even cookie. People don't use the same computer all the time to register, their IP address might be different. SO i think email address (or anything unique) would be best.
Comment #3
mandclu commentedI was able to accomplish that by creating a new module that used hook_form_alter to tie in a validation function that checked for an existing entry with the same email address. Within webform would be better, but that is available as a workaround.
Comment #4
quicksketchI haven't been able to reproduce this issue. Creating a new webform with a submission of "1 ever" works as I would expect for anonymous users.
Something you might be encountering is submitting the form as an authenticated user, then logging out and trying to submit as anonymous. Because the second submission is anonymous, it looks for IP matches (included for registered users). Since the registered user has the same IP as the current anonymous, it will not allow the form submission.
Comment #5
mandclu commentedI don't think so, I had used webform for a contest, and the client got all kinds of grief from a variety of people who were unable to enter. I ended up setting up a validation check to ensure the email addresses were unique, and removing the restriction.
Maybe a series of choice for how to make the determination would be best (i.e. based on account, IP, cookie, choose a field to be unique, etc.)
Comment #6
quicksketchMarked http://drupal.org/node/122040 as duplicate.
Comment #7
OnkelTem commentedLimitation doesn't work for authenticated users on 5.x-2.x-dev. I've just created a user, logged in, submitted a form which is "1 ever" and got the link to it again, followed it, and successfuly resubmitted the form again.
Comment #8
OnkelTem commentedSorry, I've changed the version of the report, thinking it was initially set to some 'dev'. But the problem appears on v.2 dev
Comment #9
quicksketchOnkelTem, I've corrected the problem in the 2.x branch with the attached patch.
I still haven't been able to create a problem in 1.x as described by kev52 and surge_martin.
Comment #10
quicksketchMarked http://drupal.org/node/241721 as duplicate to consolidate discussion on this problem.
Comment #11
quicksketchYou'll need to upgrade to the 2.x version, but this should be corrected by http://drupal.org/node/239751.
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.