Before you start

Before you start learn and ready the assets required for a Document of Record:

Base template: An XFA template (XDP file) created in Forms Designer or an Acrobat Form (AcroForm). Base template is used to specify styling and branding information for a Document of Record. Upload your XFA template (XDP file) to your AEM Forms instance before

Adaptive Form: An Adaptive Form for which the Document of Record is to be generated.

Generate an XFA-based Document of Record

Upload your XFA template (XDP file) to your AEM Forms instance. Perform the following steps to configure an Adaptive Form to use XFA template (XDP file) as template for Document of Record:

  1. In Experience Manager author instance, click Forms > Forms and Documents.
  2. Select a form, and click Properties.
  3. In the Properties window, select Form Model.
  4. On the Form Model tab, in the Select From drop-down, select Schema or None. You can also select a form model when you create a form.
  5. In the Document of Record Template Configuration section of the Form Model tab, select Associate Form Template as Document of Record Template. On selecting this option, all XFA template (XDP files) available on your machine are displayed. Select the appropriate file. Also, ensure same schema (data schema) is used for Adaptive Form and selected XFA template (XDP file).
  6. Click Done

Your Adaptive Form is now configured to use an XDP file as template for Document of Record. The next step is to bind Adaptive Form components with corresponding template fields.

Generate an Acroform-based Document of Record

Upload your Adobe Acrobat PDF (Acroform) to your AEM Forms instance. Perform the following steps to configure an Adaptive Form to use Adobe Acrobat PDF (Acroform) as template for Document of Record:

  1. In Experience Manager author instance, click Forms > Forms and Documents.
  2. Select a form, and click Properties.
  3. In the Properties window, select Form Model.
  4. On the Form Model tab, in the Select From drop-down, select Schema or None. You can also select a form model when you create a form.
  5. In the Document of Record Template Configuration section of the Form Model tab, select Associate Form Template as Document of Record Template. On selecting this option, all Acrobat PDF (Acroform) available on your machine are displayed. Select the appropriate file.
  6. Click Done

Your Adaptive Form is now configured to use an Acroform as template for Document of Record. The next step is to bind Adaptive Form components with corresponding template fields.

Automatically generate a Document of Record

When an Adaptive Form is configured to automatically generate a Document of Record, every time a form is changed, its Document of Record is updated immediately. For example, if a field is removed from an existing adaptive form, the corresponding field is also removed and is not visible in the Document of Record. There are many other advantages of automatically generating Document of Record. :

  • Form developers do not have to maintain data bindings manually. Auto-generated Document of Record takes care of data binding related updates.
  • Form developers do not have to manually hide fields which are marked exclude from Document of Record. Auto-generated Document of Record are pre-configured to exclude such fields.
  • Auto-generated Document of Record option saves time required to create a Form template for Document of Record.
  • Auto-generated Document of Record option lets you use different styling and appearances using different base templates. It helps select best style and appearance for Document of Record for your organization. If you do not specify styling, system styles are set as default.
  • Auto-generated Document of Record ensures any change in form is immediately reflected in Document of Record.

Perform the following steps to configure an Adaptive Form to automatically generate a Document of Record:

  1. In Experience Manager author instance, click Forms > Forms and Documents.
  2. Select a form, and click Properties.
  3. In the Properties window, select Form Model.
  4. On the Form Model tab, in the Select From drop-down, select Schema or None. You can also select a form model when you create a form.
  5. In the Document of Record Template Configuration section of the Form Model tab, select Generate Document of Record.
  6. Click Done