Allow multiple groups which can vote when creating a poll (PR #10015)

The server-side supported multiple groups but the client-side only one. This adds the functionality on the client-side as well.

GitHub