How to handle dropdown in multifield, after authoring dropdown text and values are Mismatched. | Community
Skip to main content
New Participant
December 29, 2023
Solved

How to handle dropdown in multifield, after authoring dropdown text and values are Mismatched.

  • December 29, 2023
  • 2 replies
  • 705 views

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.

 

 

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

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

2 replies

Kamal_Kishor
New Participant
January 2, 2024

@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-comprehensive-guide-bee591abd24c

 

Saravanan_Dharmaraj
Saravanan_DharmarajAccepted solution
New Participant
December 29, 2023

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