Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Multifield - One item to render on adding it

Avatar

Level 5

The requirement is to have one item in a multifield component as default when we add the component on the page. How can I achieve this? 

For example, if SKU list is a multifield, the below should be the way it needs to be added with one item already available.

goyalkritika_0-1704431344500.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Please check the existing community discussion that addresses the same topic you requested.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-populate-by-default... 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Please check the existing community discussion that addresses the same topic you requested.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-populate-by-default... 

Avatar

Community Advisor

@goyalkritika 

 

You may want to explore the cq:template. This node can be used if you want to provide the default values of properties of a component

aanchalsikka_0-1704432366321.png

 

http://www.sgaemsolutions.com/2018/02/cqtemplate-and-cqtemplatepath.html


Aanchal Sikka