AEM Forms-addon Module | Community
Skip to main content
February 21, 2024
Solved

AEM Forms-addon Module

  • February 21, 2024
  • 2 replies
  • 2454 views

Hi Team,

 

Currently we are working completed AEM Forms-add-on Project which extensively using AEM Forms .

 

Currently Client had shared the XSD and XDP(generated using Adobe Design tool)  files to us .

Please let me know difference between Creating AEM Adaptive Form using XSD vs XDP file ?

 

 

Regards

Vara

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sudhansh

Yes, good point. In case you want to merge the data captured to XDP template - you can maintain the same schema - and configure Document of Record options to refer to your template. In case you do not want to maintain the existing templates going forward, but still need a Document of Record - you can go for auto-generated Document of Record option (it supports styling and branding changes as well).

2 replies

sudhansh
Adobe Employee
Adobe Employee
February 23, 2024

@varaande 

When you create an adaptive form, you can select a form model. Your options are:

  • Form Templates: Lets you select an XFA template for your adaptive form.

    • When you select an XFA template, you can use the associated XDP file for document of record as described above.

  • XML Schema : Lets you select an XML/JSON schema definition for your adaptive form. When you select an XML schema for your adaptive form, you can:

    • Associate an XFA template for document of record. Ensure that associated XFA template uses the same XML schema as your adaptive form
  • None : Lets you create an adaptive form without a form model.

Now with the client sharing the XSD and the XDP file - there are two quick options: Template based form (referring to the XDP) and Schema (XSD based). XDP based templates allows to execute the rules defined in your XFA form - in the Adaptive Form runtime as well. This introduces an additional overhead on the client side product code to support both XFA rules and Adaptive Forms rules, and thus have a performance impact. XSD schema based form on the other hand is more performant but requires a one time definition of the rules on the Adaptive Form side (which can be easily done using the Rule Editor).

Since you are starting on the project - my recommendation would be to also review JSON schema based approach - this would require a one time conversion of XML Schema to JSON Schema - but would give you the best performance, and allows you to create Core components based Adaptive Forms - something which is future ready to support headless forms, and also has a bunch of other benefits: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/adaptive-forms/introduction.html?lang=en#benefits 

 

Adobe Employee
February 23, 2024

Also do you need to merge the data captured in adaptive form with the xdp template to generate the pdf?

sudhansh
Adobe Employee
sudhanshAdobe EmployeeAccepted solution
Adobe Employee
February 23, 2024

Yes, good point. In case you want to merge the data captured to XDP template - you can maintain the same schema - and configure Document of Record options to refer to your template. In case you do not want to maintain the existing templates going forward, but still need a Document of Record - you can go for auto-generated Document of Record option (it supports styling and branding changes as well).

kautuk_sahni
Community Manager
Community Manager
February 28, 2024

@varaande Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni