I have a scenario where on selection change I need to add particular multifield item.
If I am having a multifield containing richtext.
If I change the selection to 2 I need a multifield with 2 richtext fields.
If I change to 3 , I need 3 richtext fields.
How to add multifield-item to multifield dynamically on event change.
Our team suggested you look here -- https://experience-aem.blogspot.com/2019/02/aem-6420-adding-composite-multifield-items-based-on-cora...
check for "nested multifield" examples @ above mentioned link, you may have to tweak it.
Is there any other way without show or hide?
In the below mentioned post, a hidden textfield is added/made visible on selection of a checkbox. You may extend it based on your requirements.
coral-checkbox issue in Carousel
you can check similar posts @ Experiencing Adobe Experience Manager - Day CQ: In the blog "Experiencing Adobe Experience Manger - ...
I am checking with the TOUCH UI team.