All Show-hide dropdown fields are getting stored at JCR
I've implemented a regular showhide dropdown feature in aem dialog. Show-hide feature is working fine. First I selected first option and authored the fields under that option. Later I selected the second option and authored the fields under second option. But at content page node level both values are getting stored. My requirement is, if I switch the dropdown options from first select option to second select option, whatever the fields authored under first option should not store at content page node level. I'm not looking for any custom implementation. Do we've any OOTB AEM feature to achieve this requirement?