Skip to main content
Level 2
Oct 29, 2024 7:59 AM UTC
Solved

AEM 6.5 Forms Rule Editor async functions

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:

 

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-components/create-and-use-custom-functions-core-components#troubleshooting 

 

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

  • Generator functions
  • Async/Await functions




 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ancaraAccepted solution
Level 2
Nov 6, 2024 7:03 AM UTC

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

 

3 replies

Adobe Employee
Oct 29, 2024 8:08 AM UTC

Hello @ancara ,

 

Can you please share your AEM Forms version?

 

Thanks,

Rahul Pandey

Translate
Oct 29, 2024 8:15 AM UTC

Hello @rahulpandey27 

 

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

 

Thanks!!

 

Translate
ancaraAuthorAccepted solution
Level 2
Nov 6, 2024 7:03 AM UTC

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

 

Translate