If the system logs a user out, any unsaved work is lost. If the user has entered a lot of text, this is a high price to pay for, say, an emergency trip to the rest room or being called away by your boss.

I can understand why an autosave might not be viable. For instance, if there is an error on the page, the user wouldn't be able to save anyway.

If would be good if the page after logout contains what was in any forms that were modified at the time of logout.

Steps:
1. User is on a create or edit content page and does a lot of typing.
2. User walks away

Actual result: User loses all work
Expected result: User can copy any text fields for re-pasting into a fresh copy of the form. They can print the state of any checkboxes, radio buttons, or autofill fields for reference when re-filling the form.

Comments

Charles Belov created an issue. See original summary.

deaom’s picture

Version: 7.x-4.4 » 7.x-5.x-dev
Status: Active » Closed (outdated)
liberatr’s picture

I am looking at https://www.drupal.org/project/autosave_form as that has just made it into Drupal CMS / Starshot. Would be nice if this module could provide that functionality.

liberatr’s picture

Version: 7.x-5.x-dev » 8.x-1.x-dev
Status: Closed (outdated) » Active
liberatr’s picture

Version: 8.x-1.x-dev » 2.x-dev
the_g_bomb’s picture

Status: Active » Closed (won't fix)

I think this request is out of scope for this module, since https://www.drupal.org/project/autosave_form already provides this functionality. I would perhaps propose that this module be added to the recommended additional modules.

Can you check if these 2 modules work together, and maybe reopen this if there are issues? At that point, we could look into ensuring this module supports working with that module.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

charles belov’s picture

Alas, I was unable to test this, because of #3348026: Unable to build with two additional projects selected. If that issue is ever resolved, I will give this a try.

the_g_bomb’s picture

Rather than targeting a Drupal version, if you add autologout as the project, then add 1 additional project, Simplytestme should work.
https://simplytest.me/configure?project=autologout&version=2.x-dev will get you so far, but I can't get the additional project added using the link.

charles belov’s picture

Ah, thank you. That works, as long as I make autosave_form the project and autologout the additional project. And choosing a contribution project as the main project so lets me choose which Drupal version. Oddly, if I make autologout the project and autosave_form the additional project, the simplytest.me build fails; I guess I need to report that as a simplytest.me issue, since I would not have expected sequence to change the outcome.

I was further unable to test because the autologout module appears to be ignoring my settings. I will file a separate issue for that.

charles belov’s picture

Tested with autosave_form and autologout enabled and it works as you suggest. Thank you for the guidance.