Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to change AEM 6.2 Adaptive Form template?

Avatar

Avatar
Validate 1
Level 2
zane303
Level 2

Likes

0 likes

Total Posts

9 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
zane303
Level 2

Likes

0 likes

Total Posts

9 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
zane303
Level 2

21-05-2017

I was wondering how can we change an existing forms template?

Looking for support on this I can only find an AEM 6 document:

https://helpx.adobe.com/aem-forms/6/change-applied-template-adaptive-form.html

But this seems to be something that is no longer possible?

Any guidance on how to do this within AEM? Maybe it has to be done within CRX?

Replies

Avatar

Avatar
Boost 1
Level 2
Sakshi1
Level 2

Likes

2 likes

Total Posts

32 posts

Correct Reply

9 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile

Avatar
Boost 1
Level 2
Sakshi1
Level 2

Likes

2 likes

Total Posts

32 posts

Correct Reply

9 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile
Sakshi1
Level 2

21-05-2017

Yes, on 6.2 we have removed the changing of template. Here we have introduced editable templates, which have more power than static templates (such as components by reference, - defined in structure layer of editable templates).

But if you still wish to change the template of an already created form, you can do it using crx/de: (though this is not recommended, and some components might not work, if they depend on page level configurations)

1. Say 'test1' is the form you want to change template of.

2. Create a form say 'test2' using the desired template.

3. Go to crx/de, navigate to node  '/content/forms/af/test2/jcr:content/guideContainer', delete it and save.

4.  Navigate to node  '/content/forms/af/test1/jcr:content/guideContainer', copy and paste it under  '/content/forms/af/test2/jcr:content' and save.

Avatar

Avatar
Boost 1
Level 2
anshikagarwal
Level 2

Likes

2 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 2
anshikagarwal
Level 2

Likes

2 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Boost 1
Affirm 1
View profile
anshikagarwal
Level 2

21-05-2017

@Sakshi - How about the 'Use an existing Adaptive Form' option that is available under Adaptive Form Container properties? Would that not help achieve the use case for simple forms? Although, you might want to emphasize on the pros/cons involved and whether it is recommended.

Avatar

Avatar
Boost 1
Level 2
Sakshi1
Level 2

Likes

2 likes

Total Posts

32 posts

Correct Reply

9 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile

Avatar
Boost 1
Level 2
Sakshi1
Level 2

Likes

2 likes

Total Posts

32 posts

Correct Reply

9 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile
Sakshi1
Level 2

22-05-2017

@Anshika, yes that is a good option. Its good for similar looking templates. Here it will work as reference, that is, you would only be able to author (in editor) the original form. The form with 'Use an existing Adaptive Form' option, is displayed in authoring in non-edit mode. So it will be a little tough to style the form as per the template, if that is not the case you may use this option.