Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

if I leave 1 field in multifield component as unauthored in AEM 6.3, then nothing is rendered

Avatar

Level 2

Hi Everyone

I have downloaded the package available on this link : Creating a Granite/Coral 6.3 Multifield HTL component for Adobe Experience Manager

and have also deployed the code available on this link.

I am facing one problem.

if i author every field in the dialog for 1 item i.e product name, path, start date, show, size then the values of all the fields are displayed successfully.

But if i do not author 1 single field and author rest of the fields, no content for that particular item is displayed.

for example i don't author product name and leave it blank

and then i author path as - /content/abc

startdate-12nov2019

show-true

size-small

then no field value is displayed.

i supposed it would display atleast path, start date, show, size.But nothing would be displayed.

then i observed that it is not creating the property in JCR for product name that's why its happening.

but my actual usecase is same where user have leave one textfield unauthored. then how it would work ? 

Thanks in advance for help !

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Did you see any error in logs? It seems class is not getting instantiated properly if any of the value is missing.

In the code, there is no condition set to hide values if any of the values are not authored.



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

Did you see any error in logs? It seems class is not getting instantiated properly if any of the value is missing.

In the code, there is no condition set to hide values if any of the values are not authored.



Arun Patidar