Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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 ?
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.
is working on a reply...
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.
Continue discussion
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 ?
Well, to answer my own question...
Given that I have a duly parsed formGuid from the FormPicker
I'm not sure if it's the correct or best way, but seems to get me what I need.
is working on a reply...
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.