Default entries in multifield with different default values | Community
Skip to main content
Level 2
Sep 16, 2020 4:02 AM UTC
Solved

Default entries in multifield with different default values

Hi,

 

I have a requirement where i need to show 3 default entries in the multifield with 3 different values.

 

I have used the field.addItem(); field.doLayout(); to get the default entries using listeners. However, iam not getting how to add content to these 3 default entries.

Can someone please help me.

 

Thanks,

Maheswari

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Anudeep_Garnepudi
Anudeep_GarnepudiAccepted solution
New Participant
Oct 30, 2020 7:29 AM UTC

Hi @maheswariv26797 

You need to write a custom listener and based on multifield item count set the different values to the specific field with in multifield.

AG

4 replies

Anudeep_Garnepudi
Anudeep_GarnepudiAccepted solution
New Participant
Oct 30, 2020 7:29 AM UTC

Hi @maheswariv26797 

You need to write a custom listener and based on multifield item count set the different values to the specific field with in multifield.

AG

Translate
arunpatidar
New Participant
Sep 16, 2020 10:40 AM UTC

I think, you should you cq:template to create item0, item1 and item3 nodes with default values so that as soon as multifield component added three fields created automatically with three different values.

Translate
Arun Patidar
Level 2
Sep 16, 2020 10:46 AM UTC

Thanks for your response. However, I want this to be done in classic UI. Can you please tell how to achieve in classic ui

Translate