• Resolved aashraf85

    (@aashraf85)


    How can I save partial entries. So, if the customer is only filling out the first page and the second page he skips. I only can see the completed entries.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @aashraf85

    I hope you’re well today!

    Form can only be saved once it’s submitted, it doesn’t “intercept” data on the fly to keep it while it’s being filled-in.

    Now if the fields on that second page are not set to be required, your customer still can submit the form without filling them and it will be saved.

    Another option is to enable draft mode by enabling “Save and Continue” option in form’s “Behavior” settings. This still won’t automatically save incomplete submissions but will let your customers to stop fill-in in the form, save it and then get back to it later to continue.

    If they decide to save form, such partial submission will be also saved in database (marked as draft).

    —-

    If you want to automatically save such partial submissions, you would need to have that draft mode enabled (see above) and also add additional code to the site.

    This is the code to be added:

    https://gist.github.com/wpmudev-sls/9887db081b0f9704b7d2fd6282bafc94

    To add it to site:

    – create an empty file with a .php extension (e.g. “autosave-form-draft.php”) in “/wp-content/mu-plugins” folder of your site’s WordPress install

    – copy shared code and paste it into that file (copy raw code, without any line numbers!)

    – edit the code and replace each and every occurrence of the number 2171 across the code with your form’s ID; form ID is the number you see in form shortcode

    – save the file and clear all cache on site server

    It should then automatically save draft submissions whenever user moves from one form field to another.

    Kind regards,
    Adam

    Thread Starter aashraf85

    (@aashraf85)

    Thank you very much Adam for the reply.

    If I have more then one form, then I have to create several php files or can I put everyhting in one file like: 2171,2345,2654

    Update:

    So, I did everyhting what you explained, but sadly it is not working.

    I have the draft mode activated

    Created a new file in mu-plugins and put the code inside and put everywhere the right number inside.

    Still it is not saving.

    • This reply was modified 12 months ago by aashraf85.
    Thread Starter aashraf85

    (@aashraf85)

    I checked everyhting – sadly its nor working

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @aashraf85,

    Was the given code customized further other than the mentioned changes? I was able to get the code working on my test site, do you notice any drafts under Forminator > Submissions?

    Could you please share the form export, so that we could test and see how it behaves with your form?

    Please check the following doc on how to export a form:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    If you are concerned about any sensitive information in the form, then you can duplicate your form, remove any sensitive information, and then export it.

    You can share the export file via Google Drive, Dropbox or any cloud services in the next reply.

    Looking forward to your response.

    Best Regards,

    Nithin

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @aashraf85,

    We haven’t heard from you in a while, we will go ahead and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind regards,
    Zafer

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Partial Entries’ is closed to new replies.