Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If the option "Automatically save as draft between pages" is selected, drafts are created for anonymous users. This results in abandoned drafts piling up in the results. The Save Draft button does not appear for anonymous and neither should drafts automatically be created.
Comment | File | Size | Author |
---|---|---|---|
#1 | webform_1890422_no_anon_draft.patch | 724 bytes | Liam Morland |
Comments
Comment #1
Liam MorlandFix.
Comment #2
dgtlmoon CreditAttribution: dgtlmoon commentedI'm not sure this is a bug really, in my situation I really want draft's to be saved (they are redirected to another site and return half way through the pages with some extra data to complete)
Comment #3
dgtlmoon CreditAttribution: dgtlmoon commentedComment #4
Liam MorlandCan you explain why you are marking this postponed? Your use case sounds like a niche. Many people will be effected by abandoned drafts piling up.
Comment #5
dgtlmoon CreditAttribution: dgtlmoon commentedI dont think it's a niche, nothing niche about anonymous people submitting forms.. think they should just be expired after X hours instead of not working at all
Comment #6
Liam MorlandI think it is niche to redirect a user to another site while completing a form, as you describe in #2.
I think this patch should go in as-is to fix the immediate problem. If someone wants to later write more complicated draft expiry, then that can be a separate issue.
Comment #7
Liam MorlandRelated issue: #1932560: “Save draft” form button for anonymous users
Comment #8
quicksketchI agree with Liam here. Anonymous users don't have the ability to resume their drafts, so we shouldn't be automatically saving them between pages. The complete problem around anonymous users should be handled in #1932560: “Save draft” form button for anonymous users.
Comment #9
quicksketchCommitted #1. Let's followup on anonymous users in the other issue.
Comment #11
froboyI know this issue is closed, but just wanted to have on the record that this is a significant functionality change from how this option works 3.x. In our case a user wanted to keep data about abandoned form submissions and we couldn't figure out why they were kept in 3.x and not in 4.x. Reverting this change fixed it for us.
It might make sense to make saving abandoned forms an option, unless our client is just crazy (or maybe "our client is the only crazy"?). :)