1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / How to display the responses of a form in a page

How to display the responses of a form in a page

3 posts, 1 answered
  1. Jaap
    Jaap avatar
    10 posts
    Registered:
    23 Oct 2012
    07 Oct 2011
    Link to this post
    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
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    12 Oct 2011
    Link to this post
    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);
    where "sf_myform" is the sample name fro developers (please note it upon from creation) of the form.

    All the best,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Jaap
    Jaap avatar
    10 posts
    Registered:
    23 Oct 2012
3 posts, 1 answered