formRuntime.jsp

The formRuntime.jsp modules contains references of the client libraries. It also depicts methods to extract locale information from the request and include the localized messages in the request. You can include own customJavaScript libs or styles in the formRuntime.jsp.

config.jsp

The config.jsp module contains various configurations such as logging, proxy services, and behavior version. You can add your own configuration and widget customization to the config.jsp module. You can also add configurations such as custom widget registration to the config.jsp module.

toolbar.jsp

The toolbar.jsp contains code to create colored toolbar. To remove the toolbar, remove toolbar.jsp from the HTML.jsp

formBody.jsp

The formBody.jsp module is for the HTML representation of the XFA form.

At first, the HTML5 form renders only the first page of the form. When a user scrolls the form, then the rest of the forms is loaded. It makes the loading experience faster. The nav_footer.jsp component contains all the styles and required elements to facilitate loading of the pages on scroll.

The footer.jsp module is an empty. It lets you add scripts that are used only for user interaction.

Creating Custom Profiles

To create a custom profile, perform the following steps:

Create Profile Node

  1. Navigate to the CRX DE interface at the URL: https://'[server]:[port]'/crx/de and log in to the interface with administrator credentials.

  2. In the left pane, navigate to the location /content/xfaforms/profiles.

  3. Copy the node default, and paste the node in different folder (/content/profiles) with name hrform.

  4. Select the new node, hrform, and add a string property: sling:resourceType with value: hrform/demo.

  5. Click Save All in toolbar menu to save the changes.

Create the profile renderer script

After creating a custom profile, add render information to this profile. On receiving a request for the new profile, CRX verifies the existence of the /apps folder for the JSP page to be rendered. Create the JSP page in the /apps folder.

  1. In the left pane, navigate to the /apps folder.

  2. Right-click the /apps folder and choose to create a folder with name hrform.

  3. Insider the hrform folder create a folder named demo.

  4. Click the Save All button.

  5. Navigate to /libs/xfaforms/profile/html.jsp and copy the node html.jsp.

  6. Paste html.jsp node into the /apps/hrform/demo folder created above with same name html.jsp and click Save.

  7. If you have any other components of profile script, follow step 1-6 to copy the components in /apps/hrform/demo folder.

  8. To verify that th profile is created, open URL https://'[server]:[port]'/content/xfaforms/profiles/hrform.html

To verify your forms, Import your forms from your local file system to AEM Forms and preview the form on AEM server author instance.

Experience Manager


Espressos & Experience Manager: AEM Forms

Espressos & Experience Manager

Thursday, Mar 6, 7:00 PM UTC

Join Adobe's AEM product team as they highlight AEM Forms' latest innovations, including: the new Gen AI Assistant, Unified Composition with AEM Sites, and new ways to deploy forms through conversations.

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more