Copied to clipboard

Flag this post as spam?

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


  • Stefan 8 posts 78 karma points
    Sep 20, 2021 @ 10:16
    Stefan
    0

    Umbraco 9 contact form

    Hello everyone, hope you're having a nice day today.

    I am having trouble with creating a contact form in Umbraco 9. I can not find a way to create a controller that will handle the contact form, so I am here asking you guys for some help.

    I just want a simple form with basic data like name, email, title and message, but I can not create the model or the controller.

    Thank you all in advance for the help

  • Liam Foot 3 posts 83 karma points
    Sep 29, 2021 @ 14:37
    Liam Foot
    1

    You would create an UmbracoApiController, and POST the data from the webpage to the controller using the JavaScript Fetch API, or jQuery AJAX, for example.

    Most concepts are pretty much the same as in regular ASP.NET.

    https://our.umbraco.com/documentation/reference/routing/webapi/

Please Sign in or register to post replies

Write your reply to:

Draft