The link component is a member of the Document Services category. Ensure that the Document Services category is visible in the AEM components browser. If the category is not listed, follow the steps listed at Enabling forms portal components.
The Link component allows form portal authors to create a link to an adaptive form from anywhere on a page. The Link component is available in the Document Services section in the component browser.
Perform the following steps to add a Link component to the page:
Drag the Link component on the page. Select the component and tap . The Edit Link Component dialog opens.
In the Display tab, specify the following:
Open the Asset Info tab and specify the type of the asset. An asset can be a form. Depending upon the type of asset selected, the options listed below are displayed:
Asset Path: Repository path where the asset is stored.
Render Type: The render format–PDF, HTML, or Auto. The Auto render type detects the user environment and accordingly renders the form as HTML or as PDF. For example, if the form is accessed from a mobile device, the Auto render type render the form in HTML.
Submit URL: URL to the servlet where the form data is submitted.
HTML Profile: Profile for rendering the form as HTML.
PDF Profile: Profile for rendering the form as PDF document.
Open the Advanced tab. You can specify the additional parameters in the key-value pair format. When the link is clicked, these additional parameters and passed along with the form.
Tap Done to save the configuration.
Ensure that you select PDF as the render type if the path specified in Form Path points to a document which has PDF as its allowed render format.
Submit URL for a form can be specified at several places and its order of precedence is as follows: