Overview

In a workflow, such as an application for opening a bank account, your users fill multiple forms. Instead of asking them to fill a set of forms, you can stack the forms together and build a large form (parent form). When you add an adaptive form to the larger form, it is added as a panel (child form). You add a set of child forms to create a parent form. You can show or hide panels based on user input. Buttons of the parent form, such as submit and reset, overwrite the buttons of the child form. To add an adaptive form in the parent form, you can drag-drop the adaptive form from the asset browser (like adaptive form fragments).

Features available are:

Independent authoring

Showing/hiding appropriate forms

Lazy loading

Features like independent authoring and lazy loading provide performance improvements over using individual components to create the parent form.

Nota:

You cannot use XFA-based adaptive forms/fragments as child or parent forms.

Behind the scenes

You can add XSD-based adaptive forms and fragments in the parent form. The structure of the parent form is same as any adaptive form. When you add an adaptive form as a child form, it is added as a panel in the parent form. Data of a bound child form is stored under the data root of the afBoundData section of the parent form's XML schema.

For example, your customers fill an application form. First two fields of the form are name and identity. Its XML is:

You add another form in the application that lets your customers fill their office address. The schema root of the child form is officeAddress. Apply bindref/application/officeAddress or /officeAddress. If bindref is not provided, the child form is added as the officeAddress subtree. See the XML of the form below:

You can change the default subtree of the adaptive form/fragment using the bindRef property. The bindRef property lets you specify the path that points to a location in the tree structure of the XML schema.

If the child form is unbound, its data is stored under the data root of the afUnboundData section of the parent form's XML schema.

You can add an adaptive form as a child form multiple times. Ensure that the bindRef is modified properly so that each used instance of the adaptive form points to a different subroot under the data root.

Nota:

If different forms/fragments are mapped to same subroot, data gets overwritten.

Adding an adaptive form as a child form using asset browser

Perform the following steps to add an adaptive form as a child form using asset browser.

Open the parent form in edit mode.

In the sidebar, click Assets. Under Assets, select Adaptive Form from the drop-down.