Expand my Community achievements bar.

SOLVED

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

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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