Layout capabilities of Adaptive Forms based on Core Components
- Applies to:
- Experience Manager as a Cloud Service
- Topics:
- Adaptive Forms
- Core Components
CREATED FOR:
- User
- Developer
- Admin
Adaptive Forms provides first-class components to layout and design the forms effectively. The layout controls how components are displayed in a form. Adaptive Forms support various layouts: panel, wizard, accordion, tabs on top/horizontal tabs, and tabs on left/vertical tabs.
Pre-requisite
Before exploring the various capabilities of a layout, ensure that core components are enabled for your environment. For detailed instructions on how to enable core components for your environment, click here.
Adaptive Forms layout types
Adaptive Form based on Core Components supports the following types of layouts:
- Panel layout
- Wizard layout
- Vertical layout
- Horizontal layout
- Accordion layout
Panel layout is useful for organizing related fields in a way that makes it easier to navigate and find corresponding content. The panel layout arranges form components within distinct, sections or panels in an Adaptive Form.
Panel Layout
You can use the panel component to add the panel layout in a form. For detailed instructions on how to configure various properties of the panel component, refer to the panel component article.
The wizard layout helps simplifying a complex form by breaking it into distinct steps. Each step represents a different part of the process, and users navigate through the steps sequentially, often with Next and Previous buttons. You can use the wizard layout to create a form that involves multiple sections or steps.
Wizard Layout
You can use the wizard component to add the wizard layout in a form. For detailed instructions on how to configure the various properties of the wizard component, refer to the wizard component article.
The vertical tabs layout is also known as tabs on the left layout. The vertical tabs layout organizes panels or sections along the left side of a form. It is a common layout for forms where panels/sections is stacked vertically for easy reading and navigation.
Vertical Tabs Layout
You can use the vertical tabs component to add the vertical tabs layout in a form. For detailed instructions on how to configure the various properties of the vertical tabs component, refer to the vertical tabs component article.
The horizontal tabs layout is also known as Tabs on the top layout. The horizontal tabs layout arranges panels or sections side-by-side in a row. This layout presents the form sections in a linear manner across the width of the form or panel.
Horizontal Tabs Layout
You can use the horizontal tabs component to add the horizontal tabs layout in a form. For detailed instructions on how to configure the various properties of the horizontal tabs component, refer to the horizontal tabs component article.
The accordion layout displays content in collapsible sections or panels in an Adaptive Form. When a section is expanded, it displays the content within, while other sections remain collapsed. This layout is ideal for displaying large amounts of information in a compact form.
Accordion Layout
You can use the accordion component to add the accordion layout in a form. For detailed instructions on how to configure the various properties of the accordion component, refer to the accordion component article.
To learn how to insert a layout and add form components to it, refer to the section titled How to insert a layout and add form components to it?
How to choose the right Adaptive Form layout?
It is important to select the right Adaptive Form layout to optimize user experience and form functionality. The table helps you to understand the different layout options available and guides you in selecting the most suitable layout based on your specific needs and use cases:
- Backward: “Back” button
- Optional skipping steps
How to insert a layout and add form components to it?
The below diagram displays the steps to insert a layout to a form and add form components to it:
Consider the IT Request Form shown in the Adaptive Forms Layout Types section. The form gathers information from employees experiencing technical issues related to their network or laptop. It includes three panels:
-
Employee Details: The panel collects information about the employee and contains three textboxes labeled Name, Email ID, and Department.
-
Problem Details: The panel captures details about the issue. It includes a checkbox for the problem category with three options: Network, Computer, or Other. It also features two textboxes labeled Please Specify and Comments.
-
Attachments: The panel allows users to upload supporting documents related to the problem.
Let’s explore the step-by-step process for inserting a layout and adding components to it. In this example, a horizontal tabs layout is inserted to a form.
1. Insert a layout component to a form
-
Log in to your Experience Manager Forms instance.
-
In the upper-left corner, select Adobe Experience Manager > Forms > Forms & Documents.
-
Open an existing Adaptive Form in an edit mode if it has already been created.
Alternatively, you can also create new Adaptive Form.
-
Locate the section within the form editor that allows you to add a layout.
-
Click the Add icon. The icon is a plus sign (+) that signifies the option to add new components.
Clicking the Add icon displays an Insert New Component dialog box that displays various components for insertion.
NOTE
Alternatively, you can also drag and drop the layout component. -
Browse the available components in the dialog box and select the desrired layout from the list. In our case, we select the Horizontal Tabs component to insert the horizontal tabs layout.
When you add the horizontal tabs component to your form, it initially consists of two empty panels, named Item1 and Item2, by default. You need to manually add form components to these panels.
-
Open the properties of the horizontal tabs component and specify the name for the component.
For example, in this case, we add the name of the horizontal tabs component as IT Request Form. -
Click Done.
Once the layout component is added in the form, modify the number of panels according to the requirements.
2. Add panels to the layout
Add new panel to the horizontal tabs component:
-
Open the horizontal tabs component properties and click the Items tab.
-
Click the Add icon to add new panel.
When you click the Add icon, the Insert New Component dialog box appears.
-
Select the panel component.
When you select the panel component, the new panel is added in the horizontal layout.
Provide a name for the new panel; otherwise, you cannot save the properties of the horizontal tabs component.
-
Specify the names of the panels as shown in the figure below:
-
Click Done.
Once you click Done, the three panels appear side-by-side in a row. The panel names are displayed as headings for each panel, and you can add form components to each panel.
You can configure the properties of panel component. For example, the IT Request Form does not include panel titles, here are the steps to configure properties of panel component.
-
Open the properties of the first panel.
-
Select the Hide title checkbox from the Basic tab.
-
Click Done.
Similarly, you can hide titles for the other two panels also. Once done, you can proceed with adding form components to each panel.
3. Add form components to the panel
-
Locate the section within the panel that allows you to add components.
-
Click the Add icon. The icon is a plus sign (+) that signifies the option to add new components.
Clicking the Add icon displays an Insert New Component dialog box that displays various components for insertion.
-
Browse the available components in the dialog box that appears and select the desired component. In our case, select the Text Box component.
-
Open the properties of the added component and specify its name. Let edit the properties of the added Text Box component and specify its name.
-
Similarly, add two more Text Box components and name added the components as Email ID and Department.
Now that the components in the first panel have been added, you can proceed with adding the components to the second panel.
-
To switch the panel, click Select Panel from the toolbar.
When you click the Select Panel, the list of the added panels in the Horizontal Tabs component appears.
-
Select 2 Panel from the panel list and the view changes from the first panel to the second panel.
-
Repeat the steps outlined from Step 2 to Step 4 for adding the desired components in panel 2 as shown in the below figure:
-
Switch to the 3 Panel by following the steps outlined in Step 6 and Step 7.
-
Repeat the steps outlined from Step 2 to Step 4 for adding the desired component in panel 3:
-
Click Preview in the top-right corner of your authoring environment.
You can also drag-and-drop the components to add the form components to each panel.
You can also delete form component from the panel using the
You can also add the required validations for the components as required.
How to replace an existing layout with a new layout?
You can replace a layout of a form with a new layout, which involves modifying how components are arranged and displayed within a form.
Perform the following steps to replace the existing layout of a form:
-
Click the Replace icon from the toolbar of the layout component and the Replace Component dialog box appears.
-
Select the desired layout from the Replace Component dialog box.
After selecting the layout, the arrangement of the components within the layout changes accordingly. For example, select the vertical tabs component from the Replace Component dialog box; the arrangement of the panel changes to tabs on left:
Extra Bytes
To drag and drop components into the form editor, perform the following steps:
-
Locate the section that allows you to add components.
-
Navigate to the left panel within your authoring environment and click Components.
When you click the Components option, the list of the available components appears.
-
Browse the available components and select the desired component.
-
Drag the component by clicking and holding the selected component, then drag it over to the panel area to place it.
-
Drop the component into the panel by releasing the mouse.
Next Steps
Once you are familiar with the various layout capabilities for an Adaptive Form based on Core Components, you can move on to the next steps:
See Also
- Create an AEM Adaptive Form
- Add an AEM Adaptive Form to the AEM Sites page
- Apply themes to an AEM Adaptive Form
- Add components to an AEM Adaptive Form
- Use CAPTCHA in an AEM Adaptive Form
- Generate a PDF version (DoR) of an AEM Adaptive Form
- Translate an AEM Adaptive Form
- Enable Adobe Analytics for an Adaptive Form to track form usage
- Connect Adaptive Form to Microsoft SharePoint
- Connect Adaptive Form to Microsoft Power Automate
- Connect Adaptive Form to Microsoft OneDrive
- Connect Adaptive Form to Microsoft Azure Blob Storage
- Connect Adaptive Form to Salesforce
- Use Adobe Sign in an AEM Adaptive Form
- Add a new locale for an Adaptive Form
- Send Adaptive Form data to a database
- Send Adaptive Form data to a REST endpoint
- Send Adaptive Form data to AEM Workflow
- Use Forms Portal to list AEM Adaptive Forms on an AEM website
- Add versionings, comments, and annotations to an Adaptive Form
- Compare Adaptive Forms