Adding multifields based on numberfield in AEM 6.4 | Community
Skip to main content
Level 2
May 13, 2019

Adding multifields based on numberfield in AEM 6.4

  • May 13, 2019
  • 2 replies
  • 9659 views

Hello Everyone,

I am creating a component in which I need to add multifields based on the increment or decrement in the numberfield.

For example in the above dialog -  Suppose the author adds 3 in the numberfield, now he should be able to add only 3 sets of multifields in the dialog. That is he should be able to click on the "Add" button only 3 times and 3 sets of the field should be available. I am using Coral UI 3 for dialog creation.

Can anyone please provide some insights for the same? I have seen examples with checkbox and select but none with the numberfield.

Thanks and Regards,

Bernadine

Feike Visser smacdonald2008Arun PatidarVeena_07

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
May 13, 2019

Hi,

You need to write a listener same as to check min or max field but in your case min=max=number field.

no need to add data attribute(granite:data) node.

check this How to set min max item in Multifield AEM 6.3?

Arun Patidar
berni7473Author
Level 2
May 15, 2019

Hi  Arun,

I tried the same solution but it did not work for the for the min max values. The listener does not work for me.

Although I'm using AEM 6.4, do you think that this might be a factor here?

Regards,

Bernadine Soman

arunpatidar
Community Advisor
Community Advisor
May 15, 2019

It should work. Let me try.

Arun Patidar
May 13, 2019

Multi-field example implementation shows belo URL and let us know if you find any specific issues:

Experiencing Adobe Experience Manager - Day CQ: AEM 64 - Touch UI Nested Composite Multifield Using Coral 3

berni7473Author
Level 2
May 15, 2019

Hi Dushan,

Thank you for the input, however I'm trying the restrict the addition of fields inside a multifield, so if you have any insights on that it would be helpful.

Regards,

Bernadine Soman