var pickedForm = Model.Content.GetPropertyValue<ConfiguredFormInfo>("myFormPicker");
var vm = formulate.api.Rendering.GetFormViewModel(pickedForm.FormId, pickedForm.LayoutId,
pickedForm.TemplateId,
// Include this parameter in Formulate 0.3.7 or greater.
Model.Content);
var formName = vm.FormDefinition.Name;
Form Name in v3
I used to get the form name like this in v2
How can I get it in v3?
Thank you
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:
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...