Expandir minha barra de realizações na Comunidade.

SOLUCIONADO

AEM 6.5 Forms Rule Editor async functions

Avatar

Level 2

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 Solução aceita

Avatar

Resposta correta de
Level 2

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

 

Ver solução na publicação original

3 Respostas

Avatar

Level 3

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

Resposta correta de
Level 2

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