AEM Forms provides the complete source code of the AEM Forms app. The source contains all components to build a custom workspace application. The source code archive, adobe-lc-mobileworkspace-src-<version>.zip is a part of the adobe-aemfd-forms-app-src-pkg-<version>.zip package on package share.

Download the source package. When you download the package, it is added in your AEM Forms package manager.

After it is downloaded, navigate to: http://<server>:<port>/crx/packmgr/index.jsp, and install adobe-aemfd-forms-app-src-pkg-<version>.zip.

To download the source code archive, open http://<server>:<port>/crx/de/content/forms/mobileapps/src/adobe-lc-mobileworkspace-src-<version>.zip in your browser.
The source package is downloaded on your device.

The following image displays the extracted contents of the adobe-lc-mobileworkspace-src-<version>.zip.

The following image displays the directory structure of the windows folder in the src folder.

Setting up the environment

For Windows devices, you need:

Microsoft Windows 8.1 or Windows 10

Microsoft Visual Studio 2015

Microsoft Visual Studio Tools for Apache Cordova

Setting up Visual Studio Project for AEM Forms app

Perform the following steps to set up the AEM Forms app project in Visual Studio.

Copy the adobe-lc-mobileworkspace-src-<version>.zip archive to %HOMEPATH%\Projects folder in the Windows 8.1 or Windows 10 device with Visual Studio 2015 installed and configured.

Extract the archive in the %HOMEPATH%\Projects\MobileWorkspace directory.

Navigate to the %HOMEPATH%\Projects\MobileWorkspace\adobe-lc-mobileworkspace-src-[versionsrc]\windows directory.

Open the CordovaApp.sln file using Visual Studio 2015 and proceed to building the AEM Forms app.

Build AEM Forms app

Perform the following steps to build and deploy AEM Forms app.

Note:

Data stored on Windows file system for AEM Forms app is not encrypted. It is recommended that you use a third-party tool like Windows BitLocker Drive Encryption to encrypt disk data.

In the Visual Studio Standard Toolbar, select Release from the drop-down for build mode.

Select Windows-AnyCPU, Windows-x64, or Windows-x86 based on your platform. Windows-AnyCPU is recommended.

In the PowerShell script, set the variable: $NeedDeveloperLicense = $false.

For devices that are not domain-joined, side-loading product activation key is required. You can purchase it from a Windows reseller.

For Windows 8.1 Home edition, there is no group policy, the enterprise side-loading is not allowed, and you cannot join it with the enterprise domain. Deploy the app on a Windows 8.1 Home Edition device using developer license.