Usually, polls are anonymized. We need to process total votes, percentages... Now, in the context of Ukraine invasion, an institutional client wants to enhance an Advanced poll existing implementation, in order to collect citizens' data about their possibilities to host families, help with donations, and so on. And of course to reach out to the people who answered the questions...
While this could certainly be done with Webform, the team is used to poll UI, everything's already in place... and we need to go fast.
I couldn't build a poll Views with relationships and retrieve the voters' ID, emails... or the other way down from users to its poll votes... It seems that Views cannot map poll choices / results with the users who voted.
The poll_vote
table contains the core info for that feature, with a chid
field (the choice ID), a poll ID pid
, and uid
. The choice label can be then retrieved from poll_choice_field_data
table...
Should I extend : `Drupal\poll\PollViewData\ with a couple of Views field handler plugins, and how ?
Not sure what would be a straightforward way to solve this. Maybe I'm missing the point ? Any help, code starter, is warmly welcome to solve this quickly. Thanks