I am trying to use a XFormStatistic control in a Composer Function to display the results of a poll. However it always displays 0 votes.
I was wondering if the PropertyName property is referring to a property on the page rather than the function. If so, is there a way around this or will I have to write my own code for displaying the statistics?
If the XFormControl is also on the Composer function, then you need to refer the XFormStaticstic control to this control by set the PageLink property to the link of the Composer function itself.
<EPiServer:XFormStatistics StatisticsType="P" runat="server" ID="Statistics" PropertyName="XForm" PageLink="<%# ContentFunctionData.ContentFunctionLink %>" />
Thanks, that's just what I was looking for.