Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert Smith 18 posts 118 karma points
    Apr 22, 2017 @ 23:53
    Robert Smith
    0

    Umbraco Forms - Polls

    Hello,

    I purchased Umbraco Forms and am pleased with it.

    One of the things I want to do is to use Forms to create Polls. That is quite easy. But analyzing the poll data is not, apparently, trivial.

    Tim Geyssens did a great post about 7 years ago in which he set out the code for the older Contour package using a much older version of Umbraco (pre Razor): http://www.nibble.be/?p=81

    Tim also contributed a razor version here: https://our.umbraco.org/forum/umbraco-pro/contour/38176-Creating-a-poll-using-Razor

    There is also some documentation in our.umbraco which details how to query the standard comments form that comes with Forms, but that is pre Umbraco 6.0.0: https://our.umbraco.org/documentation/products/umbracoforms/developer/working-with-data/

    The link above also shows, purportedly, what methods will work when querying forms, although I don't know how to access them properly.

    What I want to do is to be able to analyze the poll data after a user submits their poll answers (just like Tim's post does above for the older Umbraco).

    However, I can't get any of this to work for a simple test poll I have created.

    I am using Umbraco 7.5.6 and Umbraco forms 4.4.2.

    Any help, even a push in the right direction, would be great. I have spent hours trying to nail this down and just can't seem to find what I need.

    Thank you.

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Apr 25, 2017 @ 09:36
    Dennis Aaen
    1

    Hi Robert and welcome to Our :-)

    Try to see this thread https://our.umbraco.org/forum/getting-started/questions-about-runway-and-modules/57325-Survey-or-poll-module-available-in-umbraco and especially Dennis AdolfiĀ“s comment / animation.

    Hope this helps,

    /Dennis

  • Robert Smith 18 posts 118 karma points
    Apr 25, 2017 @ 20:45
    Robert Smith
    0

    Hi Dennis,

    Thank you for your response. I have actually seen the post you refer to. However, that post seems to simply explain how to create a form and then send it to a different workflow. What I am looking for is assistance creating the Razor code to analyze the poll results.

    In other words, I have created the poll itself and it works well. I am just having a hard time creating the Razor code required to properly analyze and display the results.

    As a related question, how would we know where to go to get complete information as to what methods and properties are available via the Forms plugin? There are only about 6 methods referenced in the Documentation section and they are primarily only for retrieving the records themselves. I am looking for information on how to manipulate those records further.

    Thank you again.

Please Sign in or register to post replies

Write your reply to:

Draft