Hi,
I am migrating an Accordion component. I have a multifield which has 2 fields
1. Question- cq/gui/components/authoring/dialog/richtext
2. id- granite/ui/components/coral/foundation/form/hidden
Before migration in the component properties both the fields are stored in JSON.
But after migration I see only question is getting stored in item nodes.
Any idea why only id is not getting stored after Coral 3 migration?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @ks_hitijingole ,
If your Id field is hidden in the dialog using granite/ui/components/coral/foundation/form/hidden resourceType, then how are you authoring the value of id.
I feel there should be a listener to increment the value of id on adding each multifield and that is not working on migration.
Can you please check how you were incrementing the value.
And as now multifield is fetched in the model as list you can either remove id from the dialog and can add the index too in the list of multifield
Hope this helps.
Thanks
Hi @ks_hitijingole :
Could you please try giving "value" property as well to "granite/ui/components/coral/foundation/form/hidden" resource type.
without this property given value will not be saved in JCR.
check this documentation for more info :
https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui...
Please check if you have any listener written on the dialog field to increment the id based upon the number of field in the multi-field, if yes same you would have to tweak accordingly to make it work with coral 3.
if not you can write a listner to increment the field value.
Hi @ks_hitijingole ,
If your Id field is hidden in the dialog using granite/ui/components/coral/foundation/form/hidden resourceType, then how are you authoring the value of id.
I feel there should be a listener to increment the value of id on adding each multifield and that is not working on migration.
Can you please check how you were incrementing the value.
And as now multifield is fetched in the model as list you can either remove id from the dialog and can add the index too in the list of multifield
Hope this helps.
Thanks
Views
Likes
Replies