Multifield Validation in Coral3 dialog | Community
Skip to main content
bhuvaneswaria81
July 26, 2018
Question

Multifield Validation in Coral3 dialog

  • July 26, 2018
  • 3 replies
  • 2164 views

Hi Everyone,

I am trying to validate my multifield dialog with maximum items to be allowed. my requirement is like I should be able to add only 5 items in the multifield. If I try to add the 6th item it should show a warning message like maximum 5 items are allowed. I tried the same thing with help of below article.

Experiencing Adobe Experience Manager - Day CQ: AEM 6.3.1.0 - Touch UI Add Min Max Limit to Coral 3 Multifield

But the problem is if I try to add the 6th item it is giving warning message. but on closing of the message it is adding the 6th item as well, which should not happen.

Note: I am using AEM 6.4 version and coral 3 resource types.

Please help .

Thanks,

Bhuvana

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

3 replies

Ratna_Kumar
Level 10
July 26, 2018

Hi,

You can refer the HELPX article which will help your use case. Below is the link. Also, the message will display, if maximum items reached.

Setting Maximum items in an Experience Manager 6.3 Multifield

Hope this helps!!

Thanks,

Ratna Kumar.

smacdonald2008
Level 10
July 26, 2018

Nice response Ratna!

arunpatidar
Community Advisor
Community Advisor
July 26, 2018

Just addition to above, 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

Thanks

Arun

Arun Patidar