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.
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
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.
Nice response Ratna!
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Views
Likes
Replies