Creating a forms portal page creating-a-forms-portal-page
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.
Prerequisites prerequisites
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.
Figure: Forms portal component categories
Search & Lister Component search-amp-lister-component
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:
- List pane where the forms are listed.
- Search pane where you add the search functionality.
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.
Figure: Search & Lister Component in a page with Grid layout
List pane list-pane
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, tap the Search and Lister component and then tap . The Edit Component dialog opens.
Figure: List pane in edit mode
The Edit dialog includes several tabs that provide configuration options described in the table below. Tap OK to save the configuration, when done.
Search Pane search-pane
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.
Figure: Search Panel with Date, Full Text, Properties, and Tags Predicate
Date Predicate date-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:
-
Tap the component and then tap . 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.
-
Tap OK.
Full Text Predicate full-text-predicate
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:
- Tap the component and then tap . The Edit dialog opens.
- Specify the title in the Main Title field.
- Tap Ok.
Properties Predicate properties-predicate
The Properties Predicate component implements searching of forms based on form properties, such as title, author and description.
To configure the Properties Predicate component:
-
Tap the component and then tap . The Edit dialog opens.
-
In the General tab, specify the search label. The default value is Properties.
-
In the Options tab, tap 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.
-
Tap OK.
Tags Predicate tags-predicate
The Tags Predicate component implements searching of forms based on tags defined in Forms Manager.
To configure the Tags Predicate component:
- Tap the component and then tap . The Edit dialog opens.
- Tap the down-arrow button next to the Tags field.
- Select appropriate tags.
- Tap OK.
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.
List forms on a page list-forms-on-a-page-br
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.
Mobile device friendliness mobile-device-friendliness
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:
Figure: Search & Lister component
Customizing a forms portal page customizing-a-forms-portal-page-br
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 allows you to 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.
Related Articles
- Enable forms portal components
- Create forms portal page
- List forms on a web page using APIs
- Use Drafts and submissions component
- Customize storage of drafts and submitted forms
- Sample for integrating drafts & submissions component with database
- Customizing templates for forms portal components
- Introduction to publishing forms on a portal