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
I used to get the form name like this in v2
var pickedForm = Model.Content.GetPropertyValue<ConfiguredFormInfo>("myFormPicker");
var vm = formulate.api.Rendering.GetFormViewModel(pickedForm.FormId, pickedForm.LayoutId,
// Include this parameter in Formulate 0.3.7 or greater.
var formName = vm.FormDefinition.Name;
How can I get it in v3?
Sorry for the delay (missed this one somehow).
This might help to server as a point of reference: https://github.com/rhythmagency/formulate/blob/3004d968b4cc67f9663f6567c0babe9a08a7d41d/src/formulate.api/Controllers/FormulateRenderingController.cs
You'll want to inject an instance of IDefinitionHelper into your controller, then save the instance (e.g., to a property).
Once you have an instance, you can call something like this:
var formName = DefinitionHelper.GetFormDefinition(pickedForm.FormId).Name;
I haven't tried that, but I feel like that would work.
Can you please elaborate this step? I can't able to access formulate form in Umbraco 8.4.
Not sure what you mean by "I can't able to access formulate form in Umbraco 8.4".
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted