Expand my Community achievements bar.

SOLVED

Saving Adaptive form data in local storage and restoring it.

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
12 Replies

Avatar

Level 2

Thank you for the reply,

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

thank you

Avatar

Level 2

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

Avatar

Employee Advisor

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

Avatar

Level 2

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

Avatar

Employee Advisor

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

Avatar

Level 2

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

Avatar

Employee Advisor

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.

Avatar

Employee Advisor

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

Avatar

Correct answer by
Employee Advisor

here is the article with the demoassets

Saving And Retrieving Adaptive Form Data

Avatar

Level 2

Thank You very much workflowuser​,

Saving And Retrieving Adaptive Form Data , this was very well detailed explation, for a begiiner like me, it really helped.