Copied to clipboard

Flag this post as spam?

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


  • Håvard Hovind 9 posts 89 karma points
    Feb 20, 2018 @ 15:49
    Håvard Hovind
    0

    Hijack umbraco forms controller

    Hi,

    I want to hijack the umbraco forms controller. I have created a controller inheriting UmbracoFormsController with override on OnFormHandled, but it does not seem to fire. Is it any special way to hook this up?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Feb 21, 2018 @ 19:04
    Alex Skrypnyk
    0

    Hi Håvard

    You can create custom workflow for Umbraco forms and add it to your form, some documentation is here - https://our.umbraco.org/documentation/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Workflowtype

    Alex

  • Vladimir Knobel 95 posts 171 karma points
    May 03, 2018 @ 07:46
    Vladimir Knobel
    0

    I would like to do the same, actually I only need to add a class in the form tag... Have you find out how to do it?

  • Stefan Orr 6 posts 76 karma points
    Aug 03, 2020 @ 04:19
    Stefan Orr
    0

    Hi, did you ever get an answer to this? I'm running into problems with this as well. And the workflows won't allow me to achieve what I want

  • Kristian Gansted 2 posts 72 karma points
    Sep 03, 2021 @ 11:11
    Kristian Gansted
    0

    If anyone still needs to do something like this you can hook it up in your Form.cshtml file (alternatively render.cshtml if you use the default theme)

    Simply change the controller in the line:

    @using (Html.BeginUmbracoForm<Umbraco.Forms.Web.Controllers.UmbracoFormsController>("HandleForm"))
    
Please Sign in or register to post replies

Write your reply to:

Draft