You have already submitted the form message is displayed even before the user submits the form....
subac - April 28, 2009 - 08:49
| Project: | Webform |
| Version: | 6.x-2.8 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | subac |
| Status: | closed |
Description
Hi,
I have created a questionnaire in my live site, and i have given permission for authenticated user to submit the form..
When the user views the page- Instead of "Login or Register" link, "You have already submitted the form is displaying..
Kindly help me to fix this issue...

#1
I noticed this too in 2.6. If I clear all submissions, then anonymous users see the login message. Once anyone submits, this changes to "you have already...".
#2
The solution in 2.6 is to edit webform.module changing the if at line 1197 to an elseif. A patch effecting this is attached.
Currently, webform checks if a user is allowed to submit and sets a message if they are not. It then checks if their submission limit is exceeded and, if so, will overwrite the previous message. With the change in this patch, webform will not check the limit if it has been established that the user is not allowed to submit in the first place.
If the user has already submitted, they will still get a link to view their submissions, as it is currently.
#3
I tried this patch and didn't seem to work. I uninstalled the mod and saved the .module file. Not sure maybe it's cache issue. Anyway I set confirmation message to
message:Thanks for sending form!
And the other message about already submitting the form disappeared, don't know if that's because of the patch or what. Editing and Saving a form also triggers this message.
#4
Thanks Liam Morland, committed. I think OnlineWD's issue is more of a caching one than a permissions one.
#5
#6
Automatically closed -- issue fixed for 2 weeks with no activity.