Master Page in fragment




I should insert in an AEM Forms template a fragment in which there is also some code in a Master Page. Generally to create a fragment I follow this procedure: I first create a form (let's call it formFragment) with New -> Form, I selected a subform and I click on Create fragment on it. So to use the fragment in the template that was supposed to import it (let's call it mainForm) I select Insert Fragment by choosing the subform in formFragment. This obviously does not allow me to import the formFragment Master Pages as well, so I tried to  use Create fragment on the first level of formFragment ("document"), on the main container, in order to select the whole form, including the Master Pages. But it is not possible to change the name of "document", so there is a conflict because there is the same name ("document") in both mainForm and formFragment, causing an error. How could I import the fragment along with its Master Pages? Thank you

Accepted Solutions (0)

Answers (0)