Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • AnandBhopale 54 posts 172 karma points
    Apr 27, 2021 @ 09:38
    AnandBhopale
    0

    Umbraco forms Post data to Url

    In Umbraco forms, there is workflow type to "Post data to Url".

    Is there sample code available to refer. I am looking for

    1. How to access data on separate page (Razor Page) ?
    2. Is there any way to post data to content Page and read data from there ?
    3. Is there any way to post data to Surface Controller ?
  • Sören Deger 733 posts 2844 karma points c-trib
    Sep 12, 2021 @ 16:08
    Sören Deger
    1

    Umbraco Forms send the forms data as JObject in the Request Body.

    Here is a basic example for an UmbracoApiController:

    public class FormsController : UmbracoApiController
    {
            [HttpPost]
            public void MyCustomFormsLogic([FromBody]JObject data)
            {
    
            }
    }   
    

    Hope this helps?

    Best, Sören

Please Sign in or register to post replies

Write your reply to:

Draft