The offline mode of the AEM Forms app lets you work seamlessly even if the app goes offline. You can open, update, and submit a form without requiring any network connectivity.
You start off working on the AEM Forms app by synchronizing your app with the AEM Forms server. All the forms assigned to you are downloaded in your app. For AEM Forms on JEE, tasks are fetched in the tasks tab, and startpoints associated forms and other forms in the Forms tab. For AEM Forms on OSGi, only Forms are loaded in the Forms tab.
For details on how to synchronize the app, see Synchronizing the app.
When you synchronize your app with the AEM Forms server, the forms are downloaded to your mobile device. However, by default, the attachments associated with the form are not downloaded. This implies that if you are online, you can view the attachments. However, to ensure that you can view the attachment in the offline mode, change the default settings in your app.
To ensure that the associated attachments are downloaded with each form, set Fetch attachments to ON. For details, see Updating general settings.
Since downloading data on the mobile device can affect the performance of the device, by default, the Fetch attachments setting is set to OFF. The attachments are fetched to the device for any task that is downloaded from the server after the setting is updated to ON. In the offline mode, a user can then work on all tasks that are downloaded to device after setting the Fetch attachments options to ON.
AEM Forms app offline service identifies the resources used in a form. AEM Forms app relies on this service to obtain information about form dependencies. Information about form dependencies is required to enable offline functionalities. The AEM Forms app offline service caches the paths or URLs of the resources used in a form. The cache is updated based on the changes in the form and the validity period configured for the offline service. Caching paths or URLs of the resources used in a form improves server-side performance.
To configure the server-side offline component of AEM Forms app:
In the author instance, navigate to Adobe Experience Manager >Tools > Forms > Configure Forms App Offline Service.
Under General Settings, you can perform the following: