I need to save a draft of the webform after each field change. I know that you can save a draft by clicking a button (or between pages in multi-page forms) and my initial tough was to do a form_alter, add an ajax callback to fields and call the submit handler for save_draft. Had anyone tried something like this?
- If there is an existing draft for the current user, it needs to update that one (not create a new one);
- it needs to work for anonymous users as well.
Drupal 7 + Webform 7.x-3.x
I'll post the answer here if I manage to do it, but any feedback would be appreciated if there are people who've done this before.