Expand my Community achievements bar.

SOLVED

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

Avatar

Former Community Member

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.  

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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.  

Avatar

Former Community Member

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