Saving Adaptive form data in local storage and restoring it.

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

Answers (11)

Answers (11)

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.