Expand my Community achievements bar.

SOLVED

Adding Script Objects to AEM Forms

Avatar

Level 2

Is there a way to use (or import) script objects in AEM forms?

Primary use would be to reuse script objects from an ES4 LiveCycle form - into an AEM Form.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

You may write your own custom functions in that case and reference them on any of the adaptive forms you require. Also similar to designer forms you can leverage the adaptive form fragment capability to create re-usable components.

Please refer below links:

https://aemformsblog.singhjagjeet.com/custom-function-aem-forms-adaptive-form.html

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/clientlibs.html

AEM 6.0 Forms Help | Reusing adaptive forms

Adobe Experience Manager Help | Adaptive form fragments

View solution in original post

5 Replies

Avatar

Employee Advisor

The forms created in LiveCycle designer can be viewed as HTML5 forms in AEM Forms. The following document explains the scripts that will work when the form is rendered as HTML5 form

AEM 6.0 Forms Help | Scripting support for HTML5 forms

Avatar

Employee Advisor

Hi ,

Do you want to reuse the scripts created in Designer forms into an Adaptive form? Please elaborate your use case.

Avatar

Level 2

Yes I would.

Whether we take a form we built in LiveCycle and move to AEM - or want to use the form as a Document of Record, but reuse as much of the scripts as possible in the adaptive form - I am hoping there is a way to import and reuse - versus starting over.

If we cannot use the script objects that we created in the LC Form - then how do we add reusable functions that objects can use throughout the adaptive form?

Thanks

Avatar

Correct answer by
Employee Advisor

You may write your own custom functions in that case and reference them on any of the adaptive forms you require. Also similar to designer forms you can leverage the adaptive form fragment capability to create re-usable components.

Please refer below links:

https://aemformsblog.singhjagjeet.com/custom-function-aem-forms-adaptive-form.html

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/clientlibs.html

AEM 6.0 Forms Help | Reusing adaptive forms

Adobe Experience Manager Help | Adaptive form fragments

Avatar

Level 2

Thanks.

These links look like they will help.