A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
// Create a PageReference to the page containing the poll EPiServer.Core.PageReference pRef = new EPiServer.Core.PageReference( Convert.ToInt32(CurrentPage["CurrentPoll"].ToString()) ); // Load the poll-page using the newly created Reference SimplePage sPage = new SimplePage( pRef ); // Get form from PropertyForm form = new PropertyForm(Convert.ToInt32(sPage.CurrentPage["MainForm"])); // Add control to webform form.CreateChildControls("default" , PollHolder);Nu vill jag även görsa samma sak med statistiken för formuläret, men jag kan f**n inte lista ut hur jag ska få tag på FormStatistics objektet för formuläret på ett programmatiskt sätt... Någon som har någon idé?? Tack på förhand / Nippe