Configuring form output
- Topics:
- Adaptive Forms
CREATED FOR:
- User
- Developer
Specify the type of HTML output returned to the web browser
-
In administration console, click Services > forms.
-
Under Form Output, in the Output type list, select one of the following options:
Full HTML: To render the form within full HTML tags (a complete HTML page). This value is the default.
Form body: To render the form within
<BODY>
tags (not a complete HTML page). -
Click Save.
Specify the location where PDF content is rendered
-
Under Form Output, in the Render at list, select one of the following options:
Client: To render PDF forms within Adobe Acrobat or Adobe Reader. Client-side rendering improves the performance of AEM forms and applies only to PDFForm transformation.
Server: To render PDF forms on the application server.
Auto: To render the PDF form in the location specified by the
dynamicRender
configuration value of the XDP file. This value is the default. -
Click Save.
Configuring invocation of custom scripts before form submit
Perform the following steps to enable the feature:
-
Login to the administration console.
-
Go to Services > forms.
-
Specify the Output type as Form Body.
-
Save the settings.
-
Declare a JavaScript variable, __CUSTOM_SCRIPTS_VERSION, in the head section of the HTML code and set its value to 1.
NOTE
To disable the feature, you can remove the JavaScript variable or set its value to 0.