AEM Form Fragment in Cloud | Community
Skip to main content
Level 2
August 3, 2022
Solved

AEM Form Fragment in Cloud

  • August 3, 2022
  • 1 reply
  • 606 views

We are migrating from On Premise to AEM Cloud. We noticed that while creating a Form fragment, we are not able to add custom AEM components to the Fragment. We can only add OOTB form components. Also the designs are getting stored under /libs/settings/wcm/designs/fd/af/default.

We tried overriding the default template used for creating the Form Fragment but no luck.

Our Requirement is to add Custom AEM components to Form Fragment. Any pointers would be appreciated. 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @kshitijin,

I think that the easiest (maybe the only one) way to achieve your requirement will be to add your custom AEM components into Adaptive Form component group. Here is a sample result.

I do not think it will be possible to do it the other way around. Mainly because the static template which can be found under /libs/fd/af/templateForFragment/defaultFragmentTemplate that is used to create Form Fragments is marked as granite:FinalArea. Which means that node is classified as final and cannot be overlaid or inherited.

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
August 4, 2022

Hi @kshitijin,

I think that the easiest (maybe the only one) way to achieve your requirement will be to add your custom AEM components into Adaptive Form component group. Here is a sample result.

I do not think it will be possible to do it the other way around. Mainly because the static template which can be found under /libs/fd/af/templateForFragment/defaultFragmentTemplate that is used to create Form Fragments is marked as granite:FinalArea. Which means that node is classified as final and cannot be overlaid or inherited.