How to display the responses of a form in a page
Hello,
I want to display the responses to a form (or a selection) on a page in my site.
How can I do that?
I found somewhere a hint that I should use the FormsManager class.
But no idea how to proceed. What is the easiest way to display a list.
Thanks, Jaap
Hi Jaap,
You can create a user control an easily get the from entries using our API like this:
var manager = FormsManager.GetManager();
var form = manager.GetFormByName(
"sf_myform"
);
var entries = manager.GetFormEntries(form.EntriesTypeName);
"sf_myform"
is the sample name fro developers (please note it upon from creation) of the form.Thank you,
Found this already in this blog: http://blog.falafel.com/blogs/garycampbell/11-03-13/How_to_access_a_Sitefinity_4_0_Form_s_response_data_programmatically.aspx
And I have working.