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.
Solved! Go to Solution.
Views
Replies
Total Likes
Refer to these links. Basically we write custom JS code (validator) and hook that validator to our dialog fields. Go through these links they have implemented the validation even the packages are also available to download .
https://helpx.adobe.com/experience-manager/using/creating-touchui-validate.html
http://experience-aem.blogspot.com/2017/12/aem-63-sample-coral-3-multifield-item-listener.html
Refer to these links. Basically we write custom JS code (validator) and hook that validator to our dialog fields. Go through these links they have implemented the validation even the packages are also available to download .
https://helpx.adobe.com/experience-manager/using/creating-touchui-validate.html
http://experience-aem.blogspot.com/2017/12/aem-63-sample-coral-3-multifield-item-listener.html
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
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
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
Views
Likes
Replies