Adding Multifield Items based on Coral Select | Community
Skip to main content
Level 2
March 30, 2023

Adding Multifield Items based on Coral Select

  • March 30, 2023
  • 1 reply
  • 736 views

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.

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

1 reply

Saravanan_Dharmaraj
Community Advisor
Community Advisor
March 30, 2023

@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/

 

 

ashar02Author
Level 2
March 30, 2023

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