> - Create the adaptive form programmatically using the JSON schema as form model
Do you need to generate a JSON schema? Do you have a backend system that follows this schema when processing form submissions? If not, we could directly generate headless form JSON as outlined in this specification. Subsequently, we could expose a public JAVA API to create an adaptive form within AEM using this headless form JSON.
> Also, when it comes to logic sections for form fields being migrated from third party to AEM Forms, how do we effectively handle that?
Arranging form fields into groups pertains to layout design, a task typically carried out by practitioners using the authoring UI.
However, in this case, as a developer if you possess the layout specifics, you could incorporate this layout-related information directly into the headless form JSON. This implies that practitioners wouldn't need to utilize the authoring UI for layout-related tasks, as the headless form JSON automatically incorporates the layout specifics when creating the form.