AEM granite/ui/components/foundation/form/select isn't remembering selected option when dialog is re-opened after selection | Community
Skip to main content
October 26, 2016
Solved

AEM granite/ui/components/foundation/form/select isn't remembering selected option when dialog is re-opened after selection

  • October 26, 2016
  • 2 replies
  • 4400 views

Hi all,

Any help with the following would be greatly appreciated. 

I have a dropdown selection box inside a dialog as shown below:

When light is selected and the dialog submitted the correct value for theme is recorded in the crxde but this value isn't shown as the theme when re-opening the dialog as shown below:

I am unsure of what is required for the dropdown to show light as selected (the option showing on load) rather than dark if that has been previously selected.

Thanks, Russ

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 smacdonald2008

See this Movie component and the tabs - there are all sorts of fields on the dialog - including a drop-down,

This value is displayed when i close and re-open the dialog -- the way it should be. 

See:

https://helpx.adobe.com/experience-manager/using/htl_movie62.html (for AEM 6.2)

Compare this code/JCR Nodes with your content.

You can install the packaeg and see the dialog as well.

Hope this points you in the right direction.  

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 26, 2016

See this Movie component and the tabs - there are all sorts of fields on the dialog - including a drop-down,

This value is displayed when i close and re-open the dialog -- the way it should be. 

See:

https://helpx.adobe.com/experience-manager/using/htl_movie62.html (for AEM 6.2)

Compare this code/JCR Nodes with your content.

You can install the packaeg and see the dialog as well.

Hope this points you in the right direction.  

October 26, 2016

Thanks for pointing me towards that. I was missing the value field for each of the options in the drop down selector. I'm guessing AEM tries to match the text against the value to decide what to display. 

Thanks again for your help, Russ