Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Minimum fields in multifield in dialog aem6.3

sandyas1279209
Level 2
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
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor
0 Replies
Arun_Patidar
Community Advisor
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

sandyas1279209
Level 2
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.

Arun_Patidar
Correct answer by
Community Advisor
Community Advisor
Ratna_Kumar
Community Advisor
Community Advisor

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.