Our monthly Virtual Happy Hour is happening this week, Fri Feb 23!

Try our conversational search powered by Generative AI!

Using XFormStatistic in a Composer Function


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?



Jul 09, 2010 12:16

Hi Richard

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"
            PageLink="<%# ContentFunctionData.ContentFunctionLink %>" />


Hieu Doan

Jul 09, 2010 14:58

Thanks, that's just what I was looking for.

Jul 09, 2010 15:27
Apr 11, 2012 14:35
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.