Highlighted

AEM 6.2 classicui form show/hide not working

rajeshs28932860

12-02-2018

created a form (not adaptive) in 6.2 classic.

create a radio and text field and had a rule in radio to show or hide text field based on radio options using show/hide edit rules.

But doesnt seem to work.

Is there any other thing to be done in order to make this work?

Thank you,

Replies

Highlighted

jagjeetthukral

12-02-2018

rajeshs28932860​ :

I remember a bug in some version (not sure of the version number though), where if you make the radio button/check box  as mandatory then all the rules used to stop working, it was fixed with an incremental release.

Can you please confirm, if you can reproduce the bug. I mean if this thing does not work only if radio is mandatory, in that case, I can help you find the bug fix (incremental release) for this issue.

Cheers,

Jagjeet Singh

AEM Forms Blog

Highlighted

rajeshs28932860

13-02-2018

its OOTB form component provided by CQ.

1. if validation is present the form it is not previewed in edit mode or in publish instance. How ever if there is no validation then I am able to preview the form.

2. I get errors in abacuslink function and that is where the validation is failing.

Highlighted
Highlighted

smacdonald2008

13-02-2018

If you are using sites form - have you tried creating your own form components and adding logic to make it function the way you want? Using JQuery and CSS - you can make this work -- javascript - Hide/Show Form Fields with CSS and jQuery - Stack Overflow

Highlighted

rajeshs28932860

13-02-2018

But why is the OOTB edit rules not working ?

The console is throwing errors with abacus scripts.

TypeError: $(...).abacusLink is not a function

Is there any problems with abacus modules. If I add the validation scripts, the abacus modules fail stating the above error.

I believe the jquery is called twice. Just want to understand if there has been any patches related to forms specially for abacus errors

Highlighted

Nirmal_Jose

MVP

22-03-2018

Can you place the code snippet of the issue and the error message. I am currently debugging an issue where show/hide is removing the form elements since I change the default DOM structure