


jating030
jating030
01-04-2018
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.
smacdonald2008
smacdonald2008
01-04-2018
Please post a screen shot of you are seeing.
jating030
jating030
01-04-2018
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.
smacdonald2008
smacdonald2008
01-04-2018
How are you developing this custom component - are you using a JS lib and client libs?
workflowuser
Employee
workflowuser
Employee
01-04-2018
There is out of the box Accordion layout. any reason that is not being used?
jating030
jating030
01-04-2018
Component is developed by extending the guidefield. Currently there is no clientlibs involved
jating030
jating030
01-04-2018
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.
jating030
jating030
02-04-2018
Any suggestions ?
Mayank_Gandhi
Mayank_Gandhi
02-04-2018
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
smacdonald2008
smacdonald2008
02-04-2018
Great suggestion, please test the ootb one to see if that works.