Add, remove, or edit metadata of an Adaptive Form manage-form-metadata
Metadata allows for easier categorization and organization of assets and helps users who are looking for a specific asset.
AEM Forms, by default, provides a defined set of metadata for each asset type. Beyond the default metadata, you can add custom metadata to each of the asset types. AEM Forms also provides you with the right means of creating, managing, and exchanging all this metadata efficiently for your forms.
Metadata in AEM Forms metadata-in-aem-forms
In AEM Forms, the list of metadata properties associated with an asset depends on its type. Also, if you add any custom metadata property, it is added across all the assets of the type on which the custom metadata was added.
Asset types asset-types
The following asset types are supported in AEM Forms:
- Form templates (XFA forms)
- PDF forms
- Document (flat PDFs)
- Adaptive Forms
- Forms Data Model
- XFS
Extensive list of metadata extensive-list-of-metadata
The following is an extensive list of metadata properties supported in AEM Forms:
View form metadata view-form-metadata
Assets have existing property values, which can be viewed in read-only mode. This metadata is originated at the time of form upload or form creation.
-
Navigate to the location of the asset for which you want to view metadata.
-
Open the properties page using one of the following ways:
-
Click the Properties
note note NOTE Quick Actions are the action items that get displayed over a thumbnail on mouse hover. -
Select the form and click the Properties
-
Navigate to the form details page by clicking the form thumbnail when not in the selection mode. Now, click the
-
-
The property page that opens displays a schema containing only those metadata properties that hold some value.
The content portion is divided in two parts:
- Left panel contains thumbnail of the form
- Right panel contains metadata properties in the read-only mode, distributed across various tabs.
Add/update form metadata values add-update-form-metadata-values
You can edit the value of existing metadata properties or add new values to an existing metadata property field (for example, when a metadata field is blank).
Update the form thumbnail update-the-form-thumbnail
The left panel in the properties page displays the thumbnail of the form. By default, the thumbnail displayed is the one generated at the time of form creation (Adaptive Form) or at the time of form upload.
For all form types, you have the option to upload an image by clicking Upload Image and browsing for an image file from the local directory. The selected image is used as a thumbnail instead of the default one.
For Adaptive Forms, additional functionality is provided, which allows the user to generate a thumbnail as a snapshot of the current Adaptive Form preview. Since AEM Forms also supports authoring of Adaptive Forms, the preview of the Adaptive Form may change every time you change the Adaptive Form. This functionality to generate a thumbnail helps you obtain a fresh thumbnail for the Adaptive Form based on the current preview status. Click Generate Preview to carry out this action.
- Use a square image for the thumbnail. When you use a non-square image and view the thumbnail in list view, the thumbnail appears clipped.
- Once a new image is uploaded or generated, the thumbnail is replaced by this image and cannot be reset to the previous image.
Add custom metadata add-custom-metadata
Apart from the metadata provided out of the box, AEM Forms supports new custom metadata.
A tool (Metadata Schema Editor) is provided to define the schema for the metadata layout; that is, the layout of what appears in the Properties page of a form. The Metadata Schema Editor lets you add or modify a custom schema for your assets.
AEM Forms exposes the metadata schemas of the supported forms types in this tool. This way, you can access these schemas and use the functionality provided in metadata schema editor to add custom properties.
Navigate the metadata schema editor navigate-the-metadata-schema-editor
-
Navigate to Tools > Assets > Metadata Schemas.
-
Click forms from the listed schema forms.
-
From the list that opens, click the asset type for which you want to add custom metadata.
note note NOTE These schemas contain metadata properties that are provided out of box and must not be altered/edited (selecting check box and clicking edit from toolbar) to avoid functional issues. -
Any asset type clicked opens a list containing the
extendedmetadata
option. Edit this schema. -
Select the checkbox beside
extendedmetadata
and then click the Edit -
AEM Forms opens the metadata schema editor/form builder of the selected asset type (in this case Adaptive Form).
Metadata editor
-
The left panel contains tabbed sections where the fields are placed and the right panel displays all the available UI components and the properties of the field selected from the left panel.
-
The locked section is not editable and contains fields for all the metadata properties that are provided out of the box.
-
You can add additional tabs by clicking the + symbol.
-
You can add a custom field of desired type by dragging the field component from the Build Form section on to the schema page.
-
The specifications for this field can be provided under the Settings section after clicking the field.
-
Add custom metadata property in schema editor add-custom-metadata-property-in-schema-editor
-
Navigate to the tab (existing or new) where you want to add the custom property.
-
Drag a component of desired type from the Build Form section to left panel and place at a convenient location.
note note NOTE You cannot move the locked sections, but you can place your component in any of the empty spaces. -
Click a component that you just dragged. In the Settings tab that opens in the right panel, fill in information for the following fields:
-
Specify a Field Label to use as a display name above the field placed in schema (For example: Department)
-
Under Map to property field, you can see a prefilled value ‘./jcr:content/metadata/default’. Change the ‘default’ to a desired property name, which is used to store the property in crx repository (For example: ‘./jcr:content/metadata/department’)
note note NOTE Do not change the prefix ‘./jcr:content/metadata/’ as it defines the path where the property is stored. Also, the property name must be unique to avoid writing values for two or more properties at the same location in repository. So, it is recommended that you change the value ‘default’. -
Fill other settings based on requirement. For example: select the Required option if you want to make the field mandatory.
-
To delete a field you added, select the field and then click the delete
-
-
If necessary, follow steps 1-3 to add another property.
-
Click Save after making all the changes.
You have successfully added a custom metadata property.
All the Adaptive Forms in AEM Forms now contain this additional metadata property. You can edit it from the properties page.
See Also see-also
- Create an AEM Adaptive Form
- Add an AEM Adaptive Form to the AEM Sites page
- Apply themes to an AEM Adaptive Form
- Add components to an AEM Adaptive Form
- Use CAPTCHA in an AEM Adaptive Form
- Generate a PDF version (DoR) of an AEM Adaptive Form
- Translate an AEM Adaptive Form
- Enable Adobe Analytics for an Adaptive Form to track form usage
- Connect Adaptive Form to Microsoft SharePoint
- Connect Adaptive Form to Microsoft Power Automate
- Connect Adaptive Form to Microsoft OneDrive
- Connect Adaptive Form to Microsoft Azure Blob Storage
- Connect Adaptive Form to Salesforce
- Use Adobe Sign in an AEM Adaptive Form
- Add a new locale for an Adaptive Form
- Send Adaptive Form data to a database
- Send Adaptive Form data to a REST endpoint
- Send Adaptive Form data to AEM Workflow
- Use Forms Portal to list AEM Adaptive Forms on an AEM website
- Add versionings, comments, and annotations to an Adaptive Form
- Compare Adaptive Forms