London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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