|AEM as a Cloud Service||Click here|
|AEM 6.5||This article|
Forms portal components equips Web Developers with components to create and customize a forms portal on websites authored using Adobe Experience Manager (AEM). For a quick overview of forms portal, see Introduction to publishing forms on a portal.
Forms portal components are not available for use by default. Ensure that the following forms portal component categories are enabled as described in Enabling forms portal components.
Document Services Includes Search & Lister, Link, and Drafts and Submissions components.
Document Services Predicates Includes Date Predicate, Full Text Predicate, Properties Predicate, and Tags Predicate components. These components are used to configure search in the Search & Lister component.
Once they are enabled on an AEM sites page, these component categories are available for use in the component browser.
Forms portal component categories
The Search & Lister component, available under Document Services component category, is used to list forms on a page and to implement search on the listed forms. The component includes two panes:
You can drag-drop the Search & Lister component from the Document Services component category in the components browser onto the page. The component, when added, looks similar to the following.
Search & Lister Component in a page with Grid layout
The List pane is an area where your forms are listed. The Search & Lister component provides various configuration options that you can use to control the display of forms in the List pane.
To configure the List pane, select the Search and Lister component and then select . The ** Edit Component** dialog opens.
List pane in edit mode
The Edit dialog includes several tabs that provide configuration options described in the table below. Select OK to save the configuration, when done.
|Asset Folders||Add Item||Configures the folders where assets are uploaded using AEM Forms UI. By default, it lists all uploaded assets. For more information about AEM Forms UI, see Introduction to managing forms.|
|Title Text||Title for the Search & Lister component. The default title is Forms Portal.|
|Layout Template||Layout of the assets.|
|Disable Advanced Search||When enabled, hides the advanced search icon.|
|Disable Text Search||When enabled, hides the full-text search bar.|
|Result||Number Of Results Per Page||Configures the maximum number of forms you want to display on a page.|
Configures the results text (for example, 1-12 of 601 Results). The default value is Results.
For example, if you specify Forms in this field and there are a total of 601 forms, the result text changes to 1-12 of 601 Forms.
Configures the page text (for example, Page 1 of 51). The default value is Page.
For example, if you specify Application Form in this field and there are 51 pages, the page text changes to Application Form 1 of 51.
Replaces the word of with the specified text (Page 1 of 51). The default value is of.
For example, if you specify out of in this field, the text changes to Page 1 out of 51.
|Form Link||Render Type||Controls the listing of forms based on the specified render type. The available options are PDF and HTML. For example, if you select only HTML as the render type, the PDF forms are filtered out.|
|HTML Profile||Configures the HTML profile to use for rendering. All of the available profiles are listed in the drop-down list.|
Configures a servlet where the form data is submitted.
Note: Submit URL for a form can be specified at several places and its order of precedence is as follows:
|HTML Render Action tool tip||Configures the text for the tool tip, which is displayed on hovering the pointer over (the HTML5 icon).|
|PDF Render Action tool tip||Configures the text for the tool tip, which is displayed on hovering the pointer over (the PDF icon).|
|Style||Style Type||Lets you specify No Style, Default Style, or Custom Style for listing the forms.|
|Custom Style Path||If you selected Custom as the Style Type, browse to specify the path to the custom CSS, else select Default.|
The Search pane lets you add the Date Predicate, Full Text Predicate, Properties Predicate, and Tags Predicate components from the Document Services Predicates category in AEM Sidekick. These components implement the search functionality for users to perform search on the listed forms.
Tip: You can control the list of forms displayed on your forms portal based on a preset criteria and hide the search functionality for end users. To control the list of forms, use the Predicate components to apply search filters. You can also specify the default filter values and disable the search from the Display tab of the Edit Component dialog.
Search Panel with Date, Full Text, Properties, and Tags Predicate
The Date Predicate component, when added, enables search on the listed forms that were modified during a specified duration.
To configure the Date Predicate component:
Select the component and then select . The Edit dialog opens.
Specify the following:
Type: The only option available is Last Modified Date
Text: Label or caption for the Date Predicate Component. The default value is Last Modified Date.
Start Date Label: Label or caption of start date field
End Date Label: Label or caption for end date field
Hide: To enforce default date filter to list forms
The Full Text Predicate component implements full text search on form data, such as name and description. Users can search any text string to returns forms that contain the text in their name or description.
To configure the Full Text Predicate component:
The Properties Predicate component implements searching of forms based on form properties, such as title, author and description.
To configure the Properties Predicate component:
Select the component and then select . The Edit dialog opens.
In the General tab, specify the search label. The default value is Properties
In the Options tab, select Add Item.
Select a property from the drop-down list and specify a search label for it in the field below the drop-down list.
Repeat step 4 to add more properties. You can also specify a default filter value to list forms based on the specified criteria and hide the property for search by end users. Select the Hide checkbox for a property and specify the default filter value.
For example, if you want to display forms that contain “Travel” in their titles, select Hide next to the Title property. In addition, specify Travel in default filter value text box.
The Tags Predicate component implements searching of forms based on tags defined in Forms Manager.
To configure the Tags Predicate component:
The selected tags appear in the Search pane along with the check boxes for selection. Users can now narrow down their search based on the tags.
To list forms on a page, add the Search & Lister Component to the page and configure the List Pane. To enable the end users to search forms with date, text, and tags, add a Search Pane component.
To link a form from anywhere on the page, use the Link component. For more information about link component, see Embedding link component in a page.
To list the forms that are in a draft state and the forms which are already submitted, use the Drafts and Submissions component. For more information, see Customizing Drafts and Submissions component.
Forms Portal Search & Lister component is mobile device friendly and adapts accordingly. All three default views: Grid, Card, Panel relayouts according to the device in which site is opened provided with the fact that web page also adapts. The simple fact is that, Search & Lister is a component only and does not govern page level styling.
The following image depicts the Search & Lister component when opened on a mobile device:
Search & Lister component
You can customize a forms portal page to provide a distinct appearance to the page. You can also add metadata to improve search experience, change layout of the page, and add custom CSS styles. For more information, see Customizing templates for Forms Portal Components.
AEM Forms UI lets you add custom metadata to forms. Custom metadata is useful in providing a listing and searching forms experience to the end users. For more information about Custom metadata, see Customizing templates for Forms Portal Components.
Out of the box, forms portal provides rendering actions. You can customize forms portal to add more actions. For detailed information, see Adding custom action on form lister items.