Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic ajax/API style support for headless approaches #730

Closed
karlmacklin opened this issue Feb 18, 2022 · 8 comments
Closed

Basic ajax/API style support for headless approaches #730

karlmacklin opened this issue Feb 18, 2022 · 8 comments

Comments

@karlmacklin
Copy link

It would be useful to have decent support for using Umbraco Forms in a headless scenario of using Umbraco CMS.

Both supported by code via services for example, and by documentation. This should at least cover the following:

  • How to get form get definitions for the purpose of outputting the form structure to JSON via an endpoint request. This is what your frontend would query to know how to build and display the form.
  • How to submit a form via an endpoint POST request. Preferably something that takes a typical .NET Core API json POST request payload and can convert it to proper form request data.

Currently without this support you are forced to jump through many hoops trying to imitate what Umbraco Forms does behind the curtains and even then you end up in questionable technical debt with the risk of future updates to Umbraco Forms invalidating your current approach.

@fredrikpihlgren
Copy link

I concur. Would save us great pains if implemented.

@Lendzin
Copy link

Lendzin commented Feb 18, 2022

This sounds like a super upgrade, we've already had similar issues in our earlier project.

@Trixterx
Copy link

Trixterx commented Feb 18, 2022

We would save a lot of time with this support in our current project.

@Svante-J
Copy link

Yes please!

@AndersJesperPersson
Copy link

definitely, our team could benefit from this as well!

@84miklar
Copy link

Nice feature!

@AndyButland
Copy link

We've added this feature which will be part of 10.2.

If anyone interested wants to take a look to see some details and perhaps feedback any thoughts before we make this available in the release candidate, there's a page in this documentation PR - Add-ons/UmbracoForms/Developer/AjaxForms/index.md - that describes what we have implemented as well as a gist demonstrating how it can be used with vanilla js.

@karlmacklin
Copy link
Author

Much rejoicing!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants