Copied to clipboard

Flag this post as spam?

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


  • MB 113 posts 422 karma points
    Sep 08, 2020 @ 08:43
    MB
    0

    Get Configuration Details from Form GUID

    So I am in a Razor view and have a GUID for an Umbraco Form... via UmbracoForms.FormPicker

    How do I get a reference to the form configuration, so I can fetch details - say starting with the most basic of them - the Form-Name ?

  • MB 113 posts 422 karma points
    Sep 08, 2020 @ 22:19
    MB
    100

    Well, to answer my own question...

    Given that I have a duly parsed formGuid from the FormPicker

    var formStorage = new Umbraco.Forms.Data.Storage.FormStorage();
    var form = formStorage.GetForm(formGuid);
    var formName = form.Name;
    

    I'm not sure if it's the correct or best way, but seems to get me what I need.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies