Expand my Community achievements bar.

SOLVED

AEM 6.5 Forms Rule Editor async functions

Avatar

Level 1

Hello, recently we have migrated our forms and clientlibs to AEM 6.5 on premise, now we have detected that rule editor on forms does not work. We have identified some changes like use "var" instead of "let" but our main problem is with async and await sintax.

We have asyncronous functionality and if we change to promises, it does work correctly. Is there any configuration or option to use async and await on clientlibs?

If we remove these words rule editor works and allow to edit js. Our error is:

 

ancara_0-1730188466719.png

I have found this comment, so which option do I have?
https://experienceleague.adobe.com/en/docs/experience-manager-65/content/forms/adaptive-forms-core-c... 

 

The functions that are not supported in the custom function list are:

  • Generator functions
  • Async/Await functions




 

 

1 Accepted Solution

Avatar

Correct answer by
Level 1

Hi, finally Adobe support answered my question and we have to update version or refactor code. Typical situation in old maintenance projects ... Regards!!

ancara_0-1730876537447.png

 

View solution in original post

3 Replies

Avatar

Level 2

Hello @ancara ,

 

Can you please share your AEM Forms version?

 

Thanks,

Rahul Pandey

Avatar

Level 1

Hello @rahulpandey27 

 

We are using AEM 6.5.15 and Forms addón 6.0.856. 

 

Thanks!!

 

Avatar

Correct answer by
Level 1

Hi, finally Adobe support answered my question and we have to update version or refactor code. Typical situation in old maintenance projects ... Regards!!

ancara_0-1730876537447.png