Saving Adaptive form data in local storage and restoring it. | Community
Skip to main content
rizuwan_akib
Level 2
June 17, 2019
Solved

Saving Adaptive form data in local storage and restoring it.

  • June 17, 2019
  • 12 replies
  • 7664 views

Hi,

I'm new into AEM and currently exploring AEM forms.

I'm trying to store form data in local storage and restoring it later on  as a simple task. Can anyone help me how to proceed for this.

Thank You

Rizuwan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by workflowuser

here is the article with the demoassets

Saving And Retrieving Adaptive Form Data

12 replies

Adobe Employee
June 17, 2019

You mean as part of workflow?

Adobe Employee
June 17, 2019
rizuwan_akib
Level 2
June 17, 2019

Thank you for the reply,

Actually, not as part of workflow. but  can we write some client library to achieve this.

thank you

rizuwan_akib
Level 2
June 17, 2019

Yeah the form would something like, saving the form state  and restoring it, how it is achieved here.?

https://forms.enablementadobe.com/content/dam/formsanddocume

Adobe Employee
June 17, 2019

did you try the link I sent in the previous reply? is that something you want ?

rizuwan_akib
Level 2
June 17, 2019

Yes, i have tried the link and something like this functionality i want achieve

Adobe Employee
June 17, 2019

ok, great. I will post a quick write up and post the link here soon

rizuwan_akib
Level 2
June 17, 2019

Thank You very much.. workflowuser​ that would be really helpful.

Mayank_Gandhi
Adobe Employee
Adobe Employee
June 18, 2019

Yes, you can.

Step1: Think of an event at which you want to capture the data.

Step 2: On that event, call guideBridge.getDataXML to retrieve the data. API reference Adobe Experience Manager Help | Prefill adaptive form fields

Step 3: Save the Data as XML

Step 4. Reload the form with the XML. Follow the steps mentioned at Adobe Experience Manager Help | Prefill adaptive form fields

Your data can be loaded from a local, server or even CRX as well. Even if you want to persist the complete state of the form you can do that as well.

Adobe Employee
June 18, 2019

I will post my article by end of day today with the assets needed to run on your local system