get Random poll on page???
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..
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
Hi Kaloyan,
I can Create the poll from below link.
www.sitefinity.com/.../adding-a-survey-or-poll-to-sitefinity-ecommerce
www.sitefinity.com/.../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???
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
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..
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