adobe / aem-core-forms-components

Apache License 2.0
26 stars 50 forks source link

Adding dropdown values on field initialization using custom functions #1344

Open shravanthprasad opened 1 month ago

shravanthprasad commented 1 month ago

We are not able to set dropdown enum and enumNames on field initialization. ex: http://localhost:4502/content/forms/af/core-components-it/samples/customfunctions/populate-dropdown.html

image

AEM version 6.5.20 Core forms component version 1.1.38

rismehta commented 1 month ago

@shravanthprasad This issue was recently resolved in this commit: https://github.com/adobe/aem-core-forms-components/commit/d4417e518f48c2c1e759cde151da2687c9f7dfb9. Please update to the latest core component version compatible with 6.5.20 as detailed here: https://github.com/adobe/aem-core-forms-components/blob/release/650/VERSIONS.md.

shravanthprasad commented 1 month ago

Hi @rismehta can we have this patch added on top of v1.1.38 version as we are in the process of upgrade to SP20 with core components v2.24.2. The QA is done and Go Live is planned mid august. Updating Core Components Version to 2.24.6 might put this plan at risk

rismehta commented 1 month ago

@shravanthprasad Updating the core component version (1.1.46) for forms should be straightforward. you need to just adjust the Maven coordinates in the archetype project. Additionally, core components typically maintain backward compatibility thanks to the strict versioning practices in place.

rismehta commented 1 month ago

@shravanthprasad I have created a hotfix addressing the issue mentioned, on top of version 1.1.38. You can find the hotfix here.

Please confirm if this release resolves the use case as expected.