Rule editor rules not getting applied on Custom AEM Form Component

Avatar

Avatar

jating030

Avatar

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.

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

01-04-2018

Please post a screen shot of you are seeing.

Avatar

Avatar

jating030

Avatar

jating030

jating030

01-04-2018

Hi Smac,

accordion.png

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.

ruleeditor.png

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.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

01-04-2018

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

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

01-04-2018

There is out of the box Accordion layout. any reason that is not being used?

Avatar

Avatar

jating030

Avatar

jating030

jating030

01-04-2018

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

Avatar

Avatar

jating030

Avatar

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.

Avatar

Avatar

jating030

Avatar

jating030

jating030

02-04-2018

Any suggestions ?

Avatar

Avatar

Mayank_Gandhi

Avatar

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

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

02-04-2018

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