Expand my Community achievements bar.

SOLVED

why AEM Forms in the /content/dam/formsanddocuments

Avatar

Level 5

Hi Team

 

AEM Forms are in the /content/dam/formsanddocuments  content path why AEM Stores all forms in the content path and adding the adaptive form site page same as authoring assets .Can we use Content fragments for AEM Forms using as Headless Approach  (Similar to Content Fragments)

 

Regards

Vara

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @varaande - 

 

In AEM, the default content path for storing forms and documents is `/content/dam/formsanddocuments`. This path is used to organize and manage the assets related to forms and documents within AEM.

 

The reason for storing forms in the content path is to leverage AEM's content management capabilities. AEM provides features such as versioning, workflow, permissions, and asset management, which are beneficial for forms and documents. Storing forms as assets allows for easy authoring, management, and reuse across different sites and channels.

 

As for using Content Fragments for AEM Forms as a headless approach,

  • it is technically possible but not a recommended approach. Content Fragments are designed for managing structured content and are primarily used for creating and managing content that needs to be shared across multiple channels or platforms. They are not specifically designed for handling forms and their associated functionality, such as form rendering, data capture, or form submission.
  • AEM Forms, on the other hand, provides a comprehensive set of capabilities for designing, authoring, and managing forms. It includes features like form authoring, form templates, form data capture, validation, submission handling, and integration with back-end systems. These capabilities are specific to forms and are not available with Content Fragments alone.
  • If you require a headless approach for forms in AEM, you can consider utilizing AEM's Content Services API, which provides a RESTful API for accessing AEM content and assets. You can use the API to retrieve form data and render forms in a headless manner while still leveraging the form capabilities provided by AEM Forms.

 

 

In summary, while Content Fragments can be used for managing structured content in a headless approach, it is not recommended to use them as a replacement for AEM Forms when you need the full range of form-related functionality. Instead, consider leveraging AEM's Content Services API to access and render AEM Forms in a headless manner.

View solution in original post

3 Replies

Avatar

Community Advisor

@varaande :

 

When you create any AEM form , by default, provides a defined set of metadata.

Then AEM from stores under /content/forms/af/  <You can author the form to add any fields >

metadata related to that form stores under /content/dam/forsmanddocuments section. 

 

IN AEM forms , you can use content fragments . 

 

Suppose, in all the aem forms , Name , EMail and Mobile fields have to be exists irrespective of the template you use. 

Then create the content fragment with Name, EMAIL and mobile field and add that content fragment to the form. so you no need to manually add the fields.

 

Tanks 

Siva

 

Thanks,
Siva

Avatar

Level 5

Hi Siva

Is it possible to add the Content Fragment to Adaptive Form. Currently I am not able to add the Content Fragment But able to add the Adaptive Form Fragment.

 

Regards
Vara 

Avatar

Correct answer by
Community Advisor

Hello @varaande - 

 

In AEM, the default content path for storing forms and documents is `/content/dam/formsanddocuments`. This path is used to organize and manage the assets related to forms and documents within AEM.

 

The reason for storing forms in the content path is to leverage AEM's content management capabilities. AEM provides features such as versioning, workflow, permissions, and asset management, which are beneficial for forms and documents. Storing forms as assets allows for easy authoring, management, and reuse across different sites and channels.

 

As for using Content Fragments for AEM Forms as a headless approach,

  • it is technically possible but not a recommended approach. Content Fragments are designed for managing structured content and are primarily used for creating and managing content that needs to be shared across multiple channels or platforms. They are not specifically designed for handling forms and their associated functionality, such as form rendering, data capture, or form submission.
  • AEM Forms, on the other hand, provides a comprehensive set of capabilities for designing, authoring, and managing forms. It includes features like form authoring, form templates, form data capture, validation, submission handling, and integration with back-end systems. These capabilities are specific to forms and are not available with Content Fragments alone.
  • If you require a headless approach for forms in AEM, you can consider utilizing AEM's Content Services API, which provides a RESTful API for accessing AEM content and assets. You can use the API to retrieve form data and render forms in a headless manner while still leveraging the form capabilities provided by AEM Forms.

 

 

In summary, while Content Fragments can be used for managing structured content in a headless approach, it is not recommended to use them as a replacement for AEM Forms when you need the full range of form-related functionality. Instead, consider leveraging AEM's Content Services API to access and render AEM Forms in a headless manner.