Minimum fields in multifield in dialog aem6.3 | Community
Skip to main content
November 15, 2018
Solved

Minimum fields in multifield in dialog aem6.3

  • November 15, 2018
  • 4 replies
  • 3042 views

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​@

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 arunpatidar

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

4 replies

arunpatidar
Community Advisor
Community Advisor
November 15, 2018

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
November 19, 2018

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.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
November 19, 2018
Ratna_Kumar
November 19, 2018

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.