Dynamic Dropdown content fragment model
Hi All,
We are currently on aem 6.5.10 on prem aem.
We have a requirement to populate the dropdown [enumeration] dynamically in content fragment model.
However, when i tried to create a model with datatype as enumeration , this is what gets created , datasource with sling:resourceType as dam/cfm/admin/components/datasources/optionrenderer

With this even the static values given in model are not getting rendered in content fragment created from that model.
Now , when I update the resourceType for datasource to 'dam/cfm/admin/components/datasources/optionrendererenumeration' , the static values get populated (The reason I tried this was, since for options added it created optionsMultifield node and then when i went and checked the dam/cfm/models/editor/components/datatypeproperties/optionsmultifield/optionsmultifield.html , i found that it resolves to datassource
dam/cfm/admin/components/datasources/optionrendererenumeration", line no 37
Now I have to make the dropdown values dynamic. For this, I came accross this article, https://blogs.perficient.com/2019/09/06/dynamic-dropdowns-in-aem-content-fragments/ . However, there the author is trying to override
/dam/cfm/admin/components/datasources/optionrenderer/optionrenderer.jsp
and add the logic there. However, this script do not gets executed since i changed the datasource sling:resourcetype, since actual script was not working.
Ideally i should override dam/cfm/admin/components/datasources/optionrendererenumerationcannot, but unfortunately i cannot find that in libs path.
Can anyone please help, what am i doing wrong and how can I achieve the same


