Polls

1.7 compatible

Transform your Grav CMS site into an interactive experience with our powerful Polls plugin, offering seamless poll creation and management with real-time voting results. Create engaging polls with flexible voting options, beautiful themes, and comprehensive vote tracking, all managed through an intuitive admin interface that makes gathering user feedback effortless.

  1. Flex Objects Integration - Leverage Grav's powerful Flex Objects system for efficient poll management with full CRUD operations and easy administration.
  2. Real-time AJAX Voting - Provide a smooth, modern voting experience without page reloads, with instant result updates and animated progress bars.
  3. Vote Restriction Options - Control voting integrity with IP-based and session-based restrictions to ensure fair polling results and prevent duplicate votes.
  4. Multiple Answer Support - Create flexible polls allowing single or multiple selections with configurable minimum and maximum answer requirements.
  5. Theme Customization - Choose between built-in themes or create your own with CSS variables and template overrides for complete design control.
  6. Shortcode Embedding - Easily embed polls anywhere in your content using simple shortcode syntax with extensive parameter options.

Beautiful Poll Display

Engage your visitors with beautifully styled polls that adapt to your theme. Choose between the clean default theme or the modern theme with smooth animations. Results update in real-time with eye-catching progress bars, and you can customize colors to match your brand perfectly.

Beautiful Poll Display

Intuitive Admin Management

Manage all your polls from a centralized admin interface powered by Flex Objects. Create polls with multiple answers, set voting restrictions, and monitor results instantly. The streamlined interface makes it easy to create engaging polls in seconds.

Intuitive Admin Management

Frequently Asked Questions

The most commonly asked questions about the Polls plugin

  • Yes! You can create unlimited polls and embed them anywhere on your site using shortcodes. Each poll is managed independently with its own voting data and configuration options.

  • Votes are securely stored in an SQLite database through the Database plugin. The plugin tracks votes by IP address and/or session to prevent duplicate voting, ensuring accurate results.

  • Absolutely! The plugin includes two built-in themes (default and modern) and supports complete customization through CSS variables. You can also override the Twig templates for total control over the HTML structure.

  • Yes and no, it works with Global Grav cache, but you will need to disable caching on the page where the poll is embedded. The plugin uses AJAX to handle voting, which requires dynamic content updates that caching would interfere with.

  • Yes! You can configure each poll to allow single or multiple selections. Set minimum and maximum answer requirements, and optionally display hints to guide users on how many selections they can make.

  • Simply use the shortcode [poll id="your-poll-id" /] in any page or post. You can add parameters like theme="modern" or readonly="true" to customize each poll instance individually.

  • Yes, use the readonly parameter in your shortcode: [poll id="your-poll-id" readonly="true" /]. This is perfect for displaying final results of completed polls or surveys.

  • The plugin offers two restriction methods: IP-based (one vote per IP address) and session-based (one vote per browser session). You can enable both, either, or neither depending on your needs.