Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Minimum fields in multifield in dialog aem6.3

Avatar

Level 2

Hi,

I would like to know how to restrict to have at least 2 fields in multi field in dialog.I was referring below link,but no luck. max-items is working fine not for min-items.

Setting Maximum items in an Experience Manager 6.3 Multifield

Adobe Experience ManagerAEM - Questions​@

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Community Advisor

you may face issue if yo are using Coral3 because of missing data attribute which holds size in multifield item property.

For that you need to create extra node i.e. granite:data and define the size property with value.

Custom Validation for Coral UI 3 Multifield using foundation-validation



Arun Patidar

Avatar

Level 2

Hi Arun,
Thank you for your reply.
I am able to restrict the max multi-fields by using maxItems property in node properties.But I couldn't able to restrict the minimum

multi-fields(2 multi fields should be mandatory) by using minItems or modified script from the above mentioned url.

Can you please suggest how to restrict the minim 2 multi-fields should be there.

Avatar

Correct answer by
Community Advisor

Avatar

Level 10

Hi,

Yes as Arun said, in this thread you will get in detail for setting min and ma fields in multifield: How to set min max item in Multifield AEM 6.3?

Thanks,

Ratna Kumar.