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

Forums / General Discussions / get Random poll on page???

get Random poll on page???

6 posts, 0 answered
  1. Ketan
    Ketan avatar
    29 posts
    Registered:
    28 Mar 2014
    12 Jun 2014
    Link to this post

        Hiii All,

    Currently i am working upon the poll and my requirement is to display poll randomly as per they submit the answer the poll question.

    so how can i achieve this in my poll page.

    how can i call random poll in particular page..

  2. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    08 Dec 2016
    16 Jun 2014
    Link to this post
    Hi Ketan,

    Would it be possible to provide a bit more detailed information about your polls? I have difficulties to understand how these polls are created and then displayed. I suppose that you have created a custom poll widget. Providing this information I will get a better picture of the problem and I will be able to suggest how your scenario can be achieved.

    Regards,
    Kaloyan
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Ketan
    Ketan avatar
    29 posts
    Registered:
    28 Mar 2014
    18 Jun 2014 in reply to Kaloyan
    Link to this post

    Hi Kaloyan,

    I can Create the poll from below link.

    http://www.sitefinity.com/developer-network/videos/adding-a-survey-or-poll-to-sitefinity-ecommerce

    http://www.sitefinity.com/developer-network/marketplace/integrations/telerik-inc/poll-widget-

    from above link i can create the multiple poll.

    See attached image below.

    also from attached poll2.png Image i displayed single poll in my left column, 

    after clicking the vote(submit) button it will displayed the msg of successfully submitted the poll, i want to replace the poll instead of success msg. so how can i call another poll on that page???

     

  4. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    08 Dec 2016
    23 Jun 2014
    Link to this post
    Hi Ketan,

    In order to achieve your scenario you have to create a custom forms control. The main reason for using custom control is the fact that you cannot load random forms using out of the box widget. Please check the following blog post where you can see how to create a custom forms control.

    How to implement notifications for incoming Forms responses

    In order to get a collection of all forms created you can use Forms API. Keep in mind that you have to implement and a random generator that will return random forms.

    Querying forms

    I have recorded and a short video to demonstrate how you can load new form right after the old one is submitted.

    Regards,
    Kaloyan
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Ketan
    Ketan avatar
    29 posts
    Registered:
    28 Mar 2014
    24 Jun 2014 in reply to Kaloyan
    Link to this post

    Hello Kaloyan,

    Can you please elaborate your post, because from ur post i am not able to get the poll randomly,

    if you have any video recorded for this post than if you posting at here then it will be very helpful to us..

     

  6. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    08 Dec 2016
    24 Jun 2014
    Link to this post
    Hi Ketan,

    The video from my last reply demonstrates only how you can reload a form after submit button is clicked. In order to load random form you have to implement a custom form control. In order to do this you can use the provided blog post. Then with Sitefinity API you can query all forms that needs to be displayed. When you get all desired forms you will need to implement and a random generator which can be used to display random forms. You can check the following forum thread for more information:

    Random Number Generator C#

    Regards,
    Kaloyan
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
6 posts, 0 answered