Adding Script Objects to AEM Forms

Avatar

Avatar

johnh86027037

Avatar

johnh86027037

johnh86027037

01-05-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Mayank_Gandhi

Employee

Avatar

Mayank_Gandhi

Employee

Mayank_Gandhi
Employee

01-05-2018

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

Answers (4)

Answers (4)

Avatar

Avatar

johnh86027037

Avatar

johnh86027037

johnh86027037

02-05-2018

Thanks.

These links look like they will help.

Avatar

Avatar

johnh86027037

Avatar

johnh86027037

johnh86027037

01-05-2018

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

Avatar

Mayank_Gandhi

Employee

Avatar

Mayank_Gandhi

Employee

Mayank_Gandhi
Employee

01-05-2018

Hi ,

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

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

01-05-2018

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