I have a dropdown in multifield with options for Image and video.
when I select an image it shows a field for image. after that I have added video it shows field for video, after authoring when I go to configure some more items , the dropdown text and values are mismatched. How to handle.
Solved! Go to Solution.
Views
Replies
Total Likes
@Anilkumar9 Please check what values stored in jcr property after you save the dialog. Are you using custom script to show/hide the elements based on dropdown selection? If yes, check the script what values it read by printing it.
@Anilkumar9 Please check what values stored in jcr property after you save the dialog. Are you using custom script to show/hide the elements based on dropdown selection? If yes, check the script what values it read by printing it.
@Anilkumar9 : Are you updating drop-down/Select field text values in your custom JS by any chance?
If you can share the code snippet or provide some more details please.
This URL has good examples for show-hide of fields based on dropdown field change you can refer it as well:https://sadyrifat.medium.com/show-hide-aem-cq-dialog-fields-based-on-select-field-selection-a-compre...
Views
Likes
Replies