Copied to clipboard

Flag this post as spam?

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


  • Ginuka Rajapksha 3 posts 83 karma points
    May 28, 2020 @ 10:39
    Ginuka Rajapksha
    0

    how to get record Id on form submission

    Hi all,

    I want to add extra data fields (data) when form submit. That data should be adding automatically. I override OnFormHandledcan event,but I cant get record ID, some one know how we can get the recrodId in this event , or any suggestion?

    as a exmaple when we submit form, we want to what is the user used browser. I use this code to get browser details

    public class FormsSupportController : UmbracoFormsController
    {
    
        protected override void OnFormHandled(Form form, FormViewModel model)
        {
    
    
            var web = Request.UserAgent;
            var webBrowser = Request.Browser.Browser;
            var webPlatform = Request.Browser.Platform;
            var webVersion = Request.Browser.Version;
            var webEcmaScriptVersion = Request.Browser.EcmaScriptVersion;
        }
    
    
    
    }
    

    Thanks

  • Joep 69 posts 468 karma points
    May 28, 2020 @ 18:08
    Joep
    100

    Hi,

    Well you can make your own Workflow and there you can get the record.

    -Joep

  • Ginuka Rajapksha 3 posts 83 karma points
    May 29, 2020 @ 06:43
    Ginuka Rajapksha
    0

    Hi Jope,

    Thanks, Yes it's works.

    -Ginuka

Please Sign in or register to post replies

Write your reply to:

Draft