Introduction to publishing forms on a portal
AEM Forms portal components overview
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:
- List forms in customized layouts. Out of the box, List view, Card view, and Panel view layouts are provided. You can create your own custom layouts.
- Enables you to display custom metadata as well as custom actions while listing them.
- List forms published by AEM Forms UI on the publish instance where Forms Portal components are being used.
- Allow end users to render forms in HTML as well as PDF format.
- Use custom HTML profile to render forms.
- Enable searching of forms based on a various criteria, such as form properties, metadata, and tags.
- Submit form data to a servlet.
- Use custom CSS to customize the look and feel of the portal.
- Create links to forms.
- Lists drafts and submissions related to Adaptive Form created by end user.
Available AEM Forms portal components
AEM Forms provides the following portal components out of the box, grouped under **Document Services **and **Document Services Predicates **component groups:
Search & Lister
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.
Drafts & Submissions
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.
Forms Portal Workflow
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 forms on an AEM Sites page : Add the Search & Lister component to the page and configure the List Pane in it, to list forms on a page. Add and configure the Search Pane component to the Search & Lister component also to add search functionality to the page. The page with forms portal component is known as forms portal page .
- List forms on a non-AEM Sites page: Use the forms portal search APIs to query, retrieve, and list forms on non-AEM Sites pages.
- 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.