adobe / aem-core-forms-components

Standardized components to build forms with AEM Forms
Apache License 2.0
26 stars 58 forks source link

Custom Form Submission Output Data for Custom Submit action #1243

Closed shravanthprasad closed 4 months ago

shravanthprasad commented 6 months ago

Expected Behaviour

Should be able to add custom output data for AF submissions

Actual Behaviour

No Custom Form Submission Output Data submissionId,redirectUrl,thankYouMessage;

Reproduce Scenario (including but not limited to)

Create a custom submit action to post data to an endpoint. Pass submission success data to client side

Steps to Reproduce

Create a custom submit action to post data to an endpoint. Pass submission success data to client side

Platform and Version

AEM 6.5.17, 1.1.27-wcmB004

AEM Version (mention the exact version in case of cloud SDK)

AEM Forms Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

rismehta commented 6 months ago

@shravanthprasad, I assume you are referring to a client-side API for adding custom additional submit metadata during form submission as described in the API documentation: https://developer.adobe.com/experience-cloud/experience-manager-apis/api/stable/forms/. Is that correct?

While we are in the process of developing this client-side API, you can still directly use the HTTP API to include the additional metadata.

rismehta commented 4 months ago

In the latest version, we've included support for setting extra custom submit metadata directly from the client side. For a code sample, please refer to this link: GitHub - Adobe AEM Core Forms Components.

Closing the issue as resolved. If you have any more questions or need further assistance, please don't hesitate to open a new issue.