I have two fields
1. Dropdown with two options (1. type1, 2. type2)
2. Multifield with 4 items (item1, item2, item3, item4 ==> four items all are text fields)
case1: Now I want to show item2, item3 and item4 fields when a content author select dropdown option as type1
case2: I want to show item1 and item4 fields when a content author select dropdown option as type2
Can someone please help me how to achieve this one
Thanks in advance
Solved! Go to Solution.
Multifield fields only appear when click on add and if drop-down is out of multi-field so i believe it won’t work for hide-show with granite:data but just check if that’s not happening so you can follow this https://www.linkedin.com/pulse/aem-hideshow-drop-down-select-options-more-than-one-values-vikraman
but if it’s not working then simplest would be to maintain 2 separate multifield and as explained in above document to show his the multifield.
Hi @mahesh_tesla ,
What is your exact use case. Here can be two scenario.
1. Hide/Show multifield items on dropdown item change. say, multifield has multiple items open however you want multifile item show/hide on dropdown.
2. On multifield item add. say you have specific value on dropdown and based on selected dropdown value, multifield items will be visible.
Which event trigger multifield item hide/show