adobe / aem-core-forms-components

Apache License 2.0
26 stars 50 forks source link

API to create an adaptive form inside AEM using JSON #1275

Open Jezwn opened 3 months ago

Jezwn commented 3 months ago

I'm looking to programmatically create AEM Adaptive Forms using JSON. I have managed to create a JSON structure as specified at specification.

As far as I know Adobe hasn't exposed a public API to create an adaptive form inside AEM.

How do we move forward on this? Thanks

rismehta commented 3 months ago

@Jezwn Thanks for creating the issue. I will keep you updated, as I am working on a plan to enable this API for early adopters. We will gather collective feedback before making the API public.

rismehta commented 3 months ago

@Jezwn Could you share the URL of the external form you are attempting to migrate to AEM Forms?

Jezwn commented 3 months ago

@rismehta I actually have a number of forms with different complexity levels. Below is a simple form. https://jezwin2706.formstack.com/forms/new_form

rismehta commented 3 months ago

I actually have a number of forms with different complexity levels. Below is a simple form. https://jezwin2706.formstack.com/forms/new_form

Thanks for sharing the form URL. Is this specific to a customer requirement, or are you just exploring?

Jezwn commented 3 months ago

@rismehta It was originally a customer requirement. But at the moment I'm just exploring the migration options.

rismehta commented 3 months ago

@Jezwn I've created a gist with a code sample that you can use as a reference to create an adaptive form from a headless form JSON. You can comment on the gist, if you face any issues.

You can check the API usage here, https://gist.github.com/rismehta/fc9512317b26b60a16a839255977197c?permalink_comment_id=5093940#gistcomment-5093940