Multifield - One item to render on adding it | Community
Skip to main content
Level 4
January 5, 2024
Solved

Multifield - One item to render on adding it

  • January 5, 2024
  • 2 replies
  • 803 views

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.

 

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 Mahedi_Sabuj

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-item-in-multifield-dialog/td-p/616089 

2 replies

Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
January 5, 2024

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-item-in-multifield-dialog/td-p/616089 

Mahedi Sabuj
aanchal-sikka
Community Advisor
Community Advisor
January 5, 2024

@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

 

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

Aanchal Sikka