Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Adding Multifield Items based on Coral Select

Avatar

Level 3

I have dropdown field with 2,3 and 4 as value and based on the selection of these dropdown it should allow to add that number of multifield in dialog and when adding extra multifield to the dialog apart from selected dropdown it should coral alert and restrict from adding multifield. Any please can share the code or suggestions.

2 Replies

Avatar

Community Advisor

@ashar02 Below example show how to limit Min/Max items in the multifield but that limit is configured in dialog xml , in your case you can refactor the same code to read it from your dropdown from inside multifield validator.register function and do the validation. Please check it out. 

 

https://aemhints.com/2020/10/24/limit-multifield-aem65/

 

 

Avatar

Level 3

@Saravanan_Dharmaraj i am using dropdown select and based on dropdown value i need to add multifield can u refactor and send the code