Saving Adaptive form data in local storage and restoring it.

Avatar

Avatar

rizuwan_akib

Avatar

rizuwan_akib

rizuwan_akib

17-06-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

18-06-2019

here is the article with the demoassets

Saving And Retrieving Adaptive Form Data

Answers (11)

Answers (11)

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

17-06-2019

Avatar

Avatar

Mayank_Gandhi

Employee

Avatar

Mayank_Gandhi

Employee

Mayank_Gandhi
Employee

18-06-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.

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

17-06-2019

You mean as part of workflow?

Avatar

Avatar

rizuwan_akib

Avatar

rizuwan_akib

rizuwan_akib

18-06-2019

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.

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

18-06-2019

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

Avatar

Avatar

rizuwan_akib

Avatar

rizuwan_akib

rizuwan_akib

17-06-2019

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

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

17-06-2019

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

Avatar

Avatar

rizuwan_akib

Avatar

rizuwan_akib

rizuwan_akib

17-06-2019

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

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

17-06-2019

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

Avatar

Avatar

rizuwan_akib

Avatar

rizuwan_akib

rizuwan_akib

17-06-2019

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

https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2Fforms.enablementadobe.com%2Fcontent%2F...

Avatar

Avatar

rizuwan_akib

Avatar

rizuwan_akib

rizuwan_akib

17-06-2019

Thank you for the reply,

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

thank you