November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi Travis,
_formRepository.Service.GetFormsInfo(language) returns basic information of forms existing in the system.
To get the form container block instance you can use:
var formContainerBlock = EPiServer.AddOns.Helpers.ContentExtensions.GetContent(yourFormIdentity.Guid, yourFormIdentity.Language) as FormContainerBlock;
I have a page that I navigate to after a form submission that i want to display information about the submitted form. I am able to access the data using _formDataRepository.GetSubmissionData. However, I cannot access the actual FORM itself, it just returns an empty list when calling _formRepository.Service.GetFormsInfo(null); Below is my current code:
public class Controller: PageController<PageData>
{
private Injected<IFormRepository> _formRepository;
public ActionResult Index(CompletePage currentPage)
{
var info = _formRepository.Service.GetFormsInfo(null);
}
Info always returns no results