Rule editor rules not getting applied on Custom AEM Form Component | Community
Skip to main content
Level 2
April 1, 2018

Rule editor rules not getting applied on Custom AEM Form Component

  • April 1, 2018
  • 2 replies
  • 9436 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

smacdonald2008
Level 10
April 1, 2018

Please post a screen shot of you are seeing.

jating030Author
Level 2
April 2, 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.

jating030Author
Level 2
April 2, 2018

How are you developing this custom component - are you using a JS lib and client libs?


Component is developed by extending the guidefield. Currently there is no clientlibs involved

jating030Author
Level 2
April 3, 2018

Any suggestions ?

Mayank_Gandhi
Adobe Employee
Adobe Employee
April 3, 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
Level 10
April 3, 2018

Great suggestion, please test the ootb one to see if that works.