Hi,
I am getting error message on dropdown in content fragments. Its required filed and when open any content fragment its show an error even option is selected. I have checked on AEM-SP-6.5.8, SP-6.5.10 and SP-6.5.12 this error shown on these service packs of AEM. Its required field and I can't change it. Please suggest me solution.
content fragment model-
Content fragment below-
Below Region data saved on crx/content.. for this content fragment.
Is there any way that error message don't come when option selected?
Thanks in advance!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @N_haq,
SP10 for AEM 6.5 provides massive extension/change of Content Fragment functionality, you can find the details under SP10 release notes https://experienceleague.adobe.com/docs/experience-manager-65/release-notes/service-pack/6.5.10.html....
In general the way how list of options is stored in Enumeration component has changed. In the version before SP10 options was kept as a comma separated string, and on the repository level it was inside single property.
Starting from AEM 6.5.10, Enumeration component use list of pairs (key, value) to represent options that will be available in the drop-down. On the repository level options are store as individual child nodes of optionsmultifield node.
Solution
To fix the issue you need to reorganize your current comma separated options list into hierarchical structure that base on key/value approach. Once you do this, you will not see an error any more. Currently error is shown because there is information about value from specific content fragment that could not be matched with value from content fragment model. Items from comma separated list are interpreted as labels.
Follow below steps:
It is highly possible that you would be able to do above changes (except removing options property), directly from Content Model editor GUI - this could be faster.
Last but not least - I am not aware about any backward compatibility mode, or automated mechanism that could do the job, so I believe that manual change is the only way to go.
Hi @N_haq,
SP10 for AEM 6.5 provides massive extension/change of Content Fragment functionality, you can find the details under SP10 release notes https://experienceleague.adobe.com/docs/experience-manager-65/release-notes/service-pack/6.5.10.html....
In general the way how list of options is stored in Enumeration component has changed. In the version before SP10 options was kept as a comma separated string, and on the repository level it was inside single property.
Starting from AEM 6.5.10, Enumeration component use list of pairs (key, value) to represent options that will be available in the drop-down. On the repository level options are store as individual child nodes of optionsmultifield node.
Solution
To fix the issue you need to reorganize your current comma separated options list into hierarchical structure that base on key/value approach. Once you do this, you will not see an error any more. Currently error is shown because there is information about value from specific content fragment that could not be matched with value from content fragment model. Items from comma separated list are interpreted as labels.
Follow below steps:
It is highly possible that you would be able to do above changes (except removing options property), directly from Content Model editor GUI - this could be faster.
Last but not least - I am not aware about any backward compatibility mode, or automated mechanism that could do the job, so I believe that manual change is the only way to go.
Hi @lukasz-m
I did this way to create content fragment model and checked on content fragments but still this error not fixed. There is no any backend or other mechanism.
Is there any script that can overlay to fix this?
Views
Likes
Replies