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.
Views
Replies
Total Likes
Please post a screen shot of you are seeing.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
How are you developing this custom component - are you using a JS lib and client libs?
Views
Replies
Total Likes
Component is developed by extending the guidefield. Currently there is no clientlibs involved
Views
Replies
Total Likes
There is out of the box Accordion layout. any reason that is not being used?
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Any suggestions ?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Great suggestion, please test the ootb one to see if that works.
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
Hi Smac,
Currently, I am extending the guidefield to create the accordion widget.
Views
Replies
Total Likes
According to the team - if you extend an OOTB component - it should work. This could be a bug. Please log a support ticket,
Views
Replies
Total Likes
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.
Views
Replies
Total Likes