Auto-Save feature – where is it?

Auto-Save feature – where is it?

coderxcoderx Posts: 45Questions: 7Answers: 0
edited December 2017 in General

Hello,

I might be wrong but somewhere I saw feature for DataTables Editor AUTO-SAVE. When you type or change any fields, the form autosaves.

But I did not find it anyhere.

Was it removed? Or was it never there?

Peter

PS: I do not mean state saving https://datatables.net/examples/basic_init/state_save.html.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,141Questions: 26Answers: 4,736

    Are you looking for the Editor inline editing feature?
    https://editor.datatables.net/examples/inline-editing/index.html

    Kevin

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin

    I suspect that you are looking for the submit on blur option?

    Allan

  • coderxcoderx Posts: 45Questions: 7Answers: 0
    edited January 2018

    Thank you both for your time and the answers.

    But no, I did not mean any of those.

    Imagine Basic initialisation:

    1. When you press New button, Create new entry form opens up.
    2. Then you can enter fields (like name, position, office, etc.).
    3. At this time (while the form is still open), the Editor would autosave all input data.

    If I refresh the site, close the form by mistake or computer freezes, the unfinished row would still be present in DataTable and user could return to finish it later.

    Do you know what kind of autosave do I mean?

    Note: This would be useful in big forms with many fields.

  • coderxcoderx Posts: 45Questions: 7Answers: 0

    Thank you both for your time and the answers.

    But unfortunately no, I did not mean any of those.

    Imagine Basic initialisation:

    1. When you press New button, Create new entry form opens up.
    2. Then you can enter fields (like name, position, office, etc.).
    3. At this time (while the form is still open), the Editor would autosave all input data.

    If I refresh the site, close the form by mistake or computer freezes, the unfinished row would still be present in DataTable and I could return to finish it later.

    Note: This would be useful in big forms with many fields.

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin
    Answer ✓

    I don't believe there was ever such an option in Editor (at least there wasn't an intentional feature like that). It would be perfectly possible to do with a little external code saving the input values to localStorage and then populating the data again when the page is reloaded, or clear the data if it is submitted successfully.

    Might be an interesting blog post that, but I'm afraid there isn't such a built in option.

    Regards,
    Allan

  • coderxcoderx Posts: 45Questions: 7Answers: 0

    Allan, thank you for the information.

    Btw I wish you all the best in this New Year! :)

This discussion has been closed.