Custom cascading dropdowns in AEM metadata schema | Community
Skip to main content
March 18, 2025
Solved

Custom cascading dropdowns in AEM metadata schema

  • March 18, 2025
  • 3 replies
  • 452 views

Hi all, 

 

We have a requirement to show the cascading dropdown in AEM metadata UI editor. The dropdown values are exceed more than 15k+ values, same values are saved into node and showing it in UI which resulted slowness of metadata UI page. 

 

We are trying to reduce the slowness and improve the performance by adding the values in Json instead of node values. Can you provide any other suggestions to improve the performance if you faced earlier. 

 

 

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 avesh_narang

I comprehend your issue, and there are a few approaches you can take to address it:

  1. Initially, the dropdown should display only a default value upon loading, rather than showing all available options. The values will populate the dropdown only when the user or author clicks on that specific field, which will help keep your metadata UI page responsive.
  2. Consider implementing a pagination for the dropdown values; for example, load the first 100 values, and if the user/uthor scrolls down further within the dropdown, load another set of 100 values, and continue this process.

 

This strategy can significantly improve the performance of your metadata UI page.

 

Thanks 

3 replies

avesh_narang
avesh_narangAccepted solution
Level 3
March 19, 2025

I comprehend your issue, and there are a few approaches you can take to address it:

  1. Initially, the dropdown should display only a default value upon loading, rather than showing all available options. The values will populate the dropdown only when the user or author clicks on that specific field, which will help keep your metadata UI page responsive.
  2. Consider implementing a pagination for the dropdown values; for example, load the first 100 values, and if the user/uthor scrolls down further within the dropdown, load another set of 100 values, and continue this process.

 

This strategy can significantly improve the performance of your metadata UI page.

 

Thanks 

giuseppebaglio
Level 10
March 19, 2025

Having 15,000 values can be overwhelming and may cause the user interface to slow down. In this situation, it's worth considering if you can group the values. If grouping is possible, you can utilize Cascading Metadata, which allows users to create cascading field rules to establish contextual relationships between different pieces of metadata. 

 

Assuming your values range from 1 to 15,000, you could create 15 groups, such as 1-1,000, 1,000-2,000, 2,000-3,000, and so on. This way, the other dropdown will display only a subset of values based on the selected group.


 

 
kautuk_sahni
Community Manager
Community Manager
April 1, 2025

@blackbox2 Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni