Show/hide rules for form fields : Uncaught ReferenceError: CQ is not defined | Community
Skip to main content
Level 3
October 16, 2015
Solved

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

  • October 16, 2015
  • 1 reply
  • 1314 views

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

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

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

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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