Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Show/hide rules for form fields : Uncaught ReferenceError: CQ is not defined

krisgumm
Level 3
Level 3

Hi Community , 

  I'm using OOTB provided forms and leveraging show/hide rules to define dependencies for form fields . Everything works fine in author , but in publish environments , the rules don't work and I can see following error in browser console , 

 "  Uncaught ReferenceError: CQ is not defined "

 at line : return{initializeAbacus:function(h){var n=CQ.shared.Form.getFields();  

 in abacus.js scripts . 

I can make out that some CQ scripts are automatically included in author but not in publish .

Any pointers as of which clientlibs should I be explicitly stating to be included in publish ? I already tried embeeding granite.shared and cq.shared , but no luck .

regards

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

What version of AEM are you using?  If you are using AEM 6 - it's recommended that you use Adaptive Forms. 

https://helpx.adobe.com/experience-manager/using/posting-aem-6-form-data.html

View solution in original post

1 Reply
smacdonald2008
Correct answer by
Level 10
Level 10

What version of AEM are you using?  If you are using AEM 6 - it's recommended that you use Adaptive Forms. 

https://helpx.adobe.com/experience-manager/using/posting-aem-6-form-data.html