Reusing adaptive forms reusing-adaptive-forms
Adobe recommends using the modern and extensible data capture Core Componentsfor creating new Adaptive Formsor adding Adaptive Forms to AEM Sites pages. These components represent a significant advancement in Adaptive Forms creation, ensuring impressive user experiences. This article describes older approach to author Adaptive Forms using foundation components.
Introduction introduction
If you want to use some of the properties of an existing adaptive form to generate a new one, you can simply use the copy-paste functionality. In addition, you can paste the new adaptive form at the desired folder path. All metadata properties are replicated and the XFA and XSDs for XFA- and XSD-based adaptive forms are also copied.
Copy an adaptive form copy-an-adaptive-form
Copy an adaptive form using either of the following approaches:
-
Click copy
note note NOTE Quick actions are the action items that get displayed over a thumbnail on mouse hover. -
Select the adaptive form. The selection process is different for different views.
If you are in card view, go to selection mode by clicking the selection
If you are in list view, click the check boxes of all adaptive forms to select them.
note note NOTE All selected assets must be adaptive forms because copy-paste functionality is supported only for adaptive forms, and all assets that are selected must be present in the same folder. After selecting the assets, click the copy
Paste an adaptive form paste-an-adaptive-form
Clicking the copy action automatically exits the selection mode and makes the paste
If you are pasting in the same folder or another file with the same node name (with which it is stored in the CRX repository) exists in this target folder, 1 is appended to the suffix (for example, myaf becomes myaf1 and if myaf1 exists at the same location, myaf becomes myaf2. All other properties remain same as the original adaptive form.
After clicking the paste
Change contents of new adaptive form change-contents-of-new-adaptive-form
The content of a pasted adaptive forms can be changed using the following approaches to make it different from the copied form:
-
Change metadata properties:
You can change the metadata properties of the adaptive form for example, title and description. For more details about metadata properties and how they can be changed, see Managing Form Metadata
-
Change XFA/XSD for XFA/XSD-based Adaptive Forms:
You can change the XFA/XSD used in adaptive forms. To know how these adaptive forms can be changed, see Managing form metadata
-
Republish:
The pasted asset is different from the copied one. You can publish it as a new asset to make it available for end users. To know how to publish an asset, see Publishing and unpublishing forms