Drupal module autosave_webform
Drupal module for automaticlly save drafts of a webform in Drupal.
This module saves an open instance of a webform automaticly in the database. When the user does not complete the form but does come back at a later moment the webform is prefilled with the data entered previously.
This module does the same thing as the module Form Save State but instead of saving the data into the browsers data store it saves the data in the drupal database. This way we can assure that the user still has the data available when he or she logs in from another computer.
Technical documentation
If you want to implement the auto save functionality in your own module you have the implement the following hooks:
hook_autosavewebform_alter_autosaving_forms
hook_autosavewebform_restore_alter
hook_autosavewebform_save_alter
See autosave_webform.api.php for more information.
Git clone
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/jaapjansma/2648850.git
Comments
Comment #2
jaapjansma commentedOur senior experts (all volunteers) share hands-on business knowledge with organisations in developing countries and emerging markets, taking away bottle necks, and facilitating sustainable paths for growth.
Comment #3
jaapjansma commentedComment #4
PA robot commentedGit clone command for the sandbox is missing in the issue summary, please add it.
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #5
jaapjansma commentedThe git clone command is:
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/jaapjansma/2648850.gitComment #6
jaapjansma commentedComment #7
tobias.streefkerk commentedHello,
Great idea!
Did you consider putting your module through automated testing: pareview.sh.
It would also be nice if you put a folder name behind your git clone command.
Also consider updating the description in your .info file to make it more user friendly - they should know instantly what you mean.
Comment #8
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxjaapjansma2648850git
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
jaapjansma commentedI have updated the code to match the review
Comment #10
anishnirmal commentedHi jaapjansma,
autosave_webform.js
It found function autosave_webform_hide_save_message at line 121 is defined but never used.
Comment #11
thirstysix commentedHi jaapjansma,
I installed Webform 7.x-4.12 version and autosave_webform sandbox module. once, i fill the values it saved in the database table autosave_webform_forms. but these values didn't show in the webform fields after page refresh. It shows the below error.
Warning: Invalid argument supplied for foreach() in WebformConditionals->getChildrenMap() (line 280 of /var/www/html/drupal741/sites/all/modules/webform/includes/webform.webformconditionals.inc).
Notice: Trying to get property of non-object in WebformConditionals->executeConditionals() (line 337 of /var/www/html/drupal741/sites/all/modules/webform/includes/webform.webformconditionals.inc).
Notice: Trying to get property of non-object in WebformConditionals->executeConditionals() (line 338 of /var/www/html/drupal741/sites/all/modules/webform/includes/webform.webformconditionals.inc).
Notice: Trying to get property of non-object in webform_client_form_pages() (line 3220 of /var/www/html/drupal741/sites/all/modules/webform/webform.module).
Comment #12
jaapjansma commented@Anishnirmal It is right that the function is never used in the js file. However the function is fired after the ajax submit handler returns from Drupal.
@satheeshkhumar thanks for reporting the issue with conditionals. I will check how to solve that.
Comment #13
jaapjansma commentedComment #14
jaapjansma commented@satheeshkhumar I have fixed the notices.
Comment #15
pankajsachdeva commentedComment #16
pankajsachdeva commentedFound some issues on pareview.sh. You can follow this link : http://pareview.sh/pareview/httpgitdrupalorgsandboxjaapjansma2648850git
Comment #17
pankajsachdeva commentedComment #18
klausiThat minor coding standard issues are surely not application blockers, anything else that you found or should this be RTBC instead?
Comment #19
pankajsachdeva commentedComment #20
pankajsachdeva commentedComment #21
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.