2

Drupal 6:

Is there a way to save the values in a node form, so that if the user leaves the page before the form is completed, they can access that form at a later time and have the values that they input still in their respective form fields?

Can you use node_api to somehow save the node as "unpublished" once the user gets to a certain point in the form? How would it work if required fields aren't yet filled in at the time of the pre-save?

2 Answers 2

1

You could save the values in the users session ($_SESSION) and clear the value(s) when the form is submitted. You would have to use AJAX to update the values whenever a field is changed, as you can't do it when the user decides the leave the page.

0

In Drupal 8+, there are a couple of modules for this:

The latter looks like it's more up-to-date and has many more users.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.