Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Saving Adaptive form data in local storage and restoring it.

rizuwan_akib
Level 2
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
workflowuser
Correct answer by
Employee
Employee
0 Replies
rizuwan_akib
Level 2
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

workflowuser
Employee
Employee

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

rizuwan_akib
Level 2
Level 2

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

workflowuser
Employee
Employee

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

rizuwan_akib
Level 2
Level 2

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

Mayank_Gandhi
Community Advisor
Community 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.

workflowuser
Employee
Employee

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

workflowuser
Correct answer by
Employee
Employee
rizuwan_akib
Level 2
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.