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

AEM Forms-addon Module

  • February 21, 2024
  • 2 replies
  • 2457 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 

 

varaandeAuthor
Level 5
February 23, 2024

Thank you Sudhansh

 

If I understand correctly ,Advised to go for XSD option (Best option would be JSON schema ) for good performance and maintain point of view (XDP may leads to maintain XFA rules and Adaptive form rules (rules editor)) 

Can you please share example of XFA rules . As per my understanding either XSD or XDP or JSON to create the adaptive form quickly instead authoring fields manually  . Is possible to use both XSD and XDP to Create Adaptive Form ?if yes any additional advantages without impacting the performance & Easy Maintained .

& Recommended use Document of Record either using XSD or JSON or XDP , Please confirm here.

As per our requirement we already have xdp files .But currently team working creating xsds around 1400 xdp files . I was confused why additionally effort is required to create xsds (with data Dictionary file which having details of fields) . One more requirement All Adaptive forms prior to final submission must preview the PDF View(also allow download if end-use need save copy for reference)  So i believe we have choose the "Generate Document of Record "  for the all the Forms.

 

Regards

Vara




varaandeAuthor
Level 5
February 27, 2024

The performance impact is for the end-users. Also, core components based Adaptive Forms support authoring a Form directly inside a Sites page - and ease development of components as well (BEM based + Open source). So apart from the ease to authors and developers, the end-users also have better experience with better Lighthouse score.


Thank you Sudhansh

/

While Creating Additive Form ,Select Option as "Form Template" From Form Model Tab

1) Advantage or use case or Scenario  choose the "XDP" file or other options ex: Visual Top or Visual Left etc. 

 

2) what is advantages/use case/scenario  to  choose "Associate form templates as the document of the record" 

Using JSON Schema again "Associate form templates as the document of the record"  either choose the XDP or Visual Top or Visual Left etc.

 

 

 

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