Expand my Community achievements bar.

SOLVED

Multi-field Validation.!

Avatar

Level 4

Hi @All,

 

Can anyone help please how to validate the Multifield components. For Example we shoudn't add the more then 5 fields in a multifield. like wise how to validate can anyone share the JS with Explanation. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Community Advisor

Hi @imadullakhan 

 

Please go through this blog https://blogs.perficient.com/2018/10/26/simple-multifield-max-item-validation-for-aem-6-4/

It will help you with your usecase.

 

Regards,

Arpit Varshney

Avatar

Employee

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

 

[0]: Setting Maximum items in an Experience Manager 6.3 Multifield

 

Capture.JPG

 

 

Avatar

Community Advisor

Please check [0] , if you are using coral3 multifield resource type.

[0] https://myaemlearnings.blogspot.com/2018/03/custom-validation-for-coral-ui-3.html



Arun Patidar