In a typical forms-centric portal deployment scenario, forms development and portal development are two disjoint activities. While Form Designers design and store forms in a repository, Web Developers create a web application to list forms and handle submission of forms. Forms are copied over to the web tier as there is no communication between the forms repository and the web application.
Such scenarios often result in management issues and production delays. For example, if there is a newer version of a form available in the repository, you need to replace the form on the web tier, modify the web application, and redeploy the form on the public site. Redeploying the web application might cause some server downtime. Typically, the server downtime is a planned activity and therefore the changes cannot be pushed to the public site instantaneously.
AEM Forms provides portal components that reduce management overheads and production delays. The components equip Web Developers to create and customize a forms portal on websites authored using Adobe Experience Manager (AEM).
The form portal components allow you to add the following functionality:
AEM Forms provides the following portal components out of the box, grouped under Document Services and Document Services Predicates component groups:
The Search & Lister component allows you to list forms from the forms repository onto your portal page and provides configuration options to list forms based on specified criteria. It also allows you to specify search criteria to enable your portal users to search across the list of forms.
While Search & Lister component displays forms which are made public by Forms author, the Drafts & Submissions component displays forms that are saved as draft for completing later and submitted forms. This component provides personalized experience to any logged in user.
The Link component allows you to create a link to a form anywhere on the page. Consider a scenario where you are offering a training program, and you want your users to submit a form to register for the training. On your website, you have posted the program details. Below the details, you want to provide a link to the registration form. The Link component can help you create that link.
Forms portal enables you to list forms from the forms repository onto your portal page. It also allows you to specify search criteria to enable your portal users to search across the list of forms. You can also use the Drafts & Submissions component to display forms that are saved as a draft for completing later and submitted forms. You have to perform a certain set of operations before these functionalities become available on a Sites page. Perform the steps in the listed sequence to make the components and respective functionalities available on a sites page:
Enable Forms Portal components: Out of the box, forms portal components are not available for use. Enable the components from AEM sidekick for an AEM Sites page.
List forms on a page (create forms portal page): You can list forms on both AEM Sites and non-AEM Site pages. The list contains forms available on the publish instance. A user can open forms and start filling those. Whenever a user opens a form, a new instance of the form is created:
List draft and submitted forms on a forms portal page: Add and configure the Drafts & Submissions component to the forms portal page. The component lists all the forms that are in the draft state and the forms that are already submitted.
To enable a submitted adaptive form to appear in the submissions tab, set the Submit action to Forms Portal Submit Action. Alternatively, enable the Forms Portal Submit option. Whenever a user submits the form, the form is added to the submissions tab.
Configure storage for the draft and submitted forms data: By default, draft and submissions data is stored in the AEM repository. In a production environment, it is recommended not to store draft or submitted form data in AEM repository. Configure forms portal component to save data to a secure location.
(Optional) Customizing the forms portal components: Customize your forms portal page templates to provide a distinctive appearance to the components.
(Optional) Add custom metadata to forms: Add custom metadata to forms to improve listing and search experience.
Publish the forms portal page: Your forms portal page is now ready. Publish the page.