Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Hi Team,
I have a requirement where I have to create a custom Adaptive form component (accordion). I did the following:
1. Created cq:component that extends "fd/af/components/guidefield"
2. Added init.jsp, widget.jsp and cq:template
init.jsp
widget.jsp
widget.html
cq:Template
Now, I dragged and dropped the above component to the panel within Adaptive form Fragment
Any rule applied to the component which is being added to the accordion panel (highlighted in bold in widget.html) doesn't work.
Please suggest.
Zugriffe
Antworten
Likes gesamt
Please post a screen shot of you are seeing.
Zugriffe
Antworten
Likes gesamt
Hi Smac,
In the above screenshot, highlighted is the custom accordion component. Requirement is to whenever user selects option "Yes", the textfield above it hides. Below is the snapshot of the rule.
But it didn't worked. I also tried applying the rule on the textbox not contained within the custom component but that also didn't worked.
Zugriffe
Antworten
Likes gesamt
How are you developing this custom component - are you using a JS lib and client libs?
Zugriffe
Antworten
Likes gesamt
Component is developed by extending the guidefield. Currently there is no clientlibs involved
Zugriffe
Antworten
Likes gesamt
There is out of the box Accordion layout. any reason that is not being used?
Zugriffe
Antworten
Likes gesamt
I have to implement other customisation in accordion. So thought of creating the new one. Is there any thing I am missing for which rule-editor rules are not working.
Zugriffe
Antworten
Likes gesamt
Any suggestions ?
Zugriffe
Antworten
Likes gesamt
Hi Jatin,
Going by a comment in one of the previous post where you mentioned that it is not working outside the custom component as well, can you please attach the custom accordion package here(if possible) and secondly use OOTB accordion and check for the similar rule.
Please confirm your AEM forms version and the CFP level as well.
Regards,
Mayank Gandhi
Zugriffe
Antworten
Likes gesamt
Great suggestion, please test the ootb one to see if that works.
Zugriffe
Antworten
Likes gesamt
Also - one of our form experts stated -- "If they’re extending one of the existing components which is the recommended approach I would expect all capabilities to be supported."
Are you extending an OOTB component?
Zugriffe
Antworten
Likes gesamt
Hi Smac,
Currently, I am extending the guidefield to create the accordion widget.
Zugriffe
Antworten
Likes gesamt
According to the team - if you extend an OOTB component - it should work. This could be a bug. Please log a support ticket,
Zugriffe
Antworten
Likes gesamt
Hi Mayank,
I tried using OOTB accordion layout, the rules work perfectly fine. Is there something that I am doing wrong in the code mentioned above for the custom accordion.
We are using the default form package that is shipped with AEM6.2. No additional package has been installed for the same.
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten