Handling Surveys in MVC

Matthew Hudock asked on September 24, 2020 14:50

Hi all,

I was wondering if someone could point me in the right direction to how surveys are going to be handled on Kentico 12 SP MVC?

I know the polls application is currently what does it but after reviewing the upcoming changes to phoenix i see that that application is being replaced..

So i was wondering if someone could point me in the right direction to handle them now and in the future without using the polls application?

Thank you!

Recent Answers


Dmitry Bastron answered on September 24, 2020 15:00

Hi Matthew,

Yes, you are right, polls feature is due to be removed and there is no analogue in MVC, and won't be. With MVC approach you will need to develop this as a custom feature, unfortunately.

0 votesVote for this answer Mark as a Correct answer

Matthew Hudock answered on September 24, 2020 15:08

Dmitry,

Thank you for the timely response. Is there somewhere online you could point me too that would help me get started with this?

Thank you!

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on September 24, 2020 15:19

Dear Matthew,

There are no specific recommendations for building this particular function (at least I'm not aware of any available online). Personally, I would have gone this route:

  • Create a custom module
  • Add a custom class to store polls data (depending on what your requirements are)
  • Add API controller that can record votes in your custom class
  • Display your custom voting interface on frontend and when the user voted call the API above to cast their vote
0 votesVote for this answer Mark as a Correct answer

Matthew Hudock answered on September 24, 2020 15:33

Okay, Thank you! I will give that a try

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.