Multiple Options
Create polls with 2-10 answer options
Time Limits
Set custom voting deadlines or keep open indefinitely
Image Options
Add visual elements with text+image poll options
Overview
Poll posts enable interactive community engagement by allowing users to vote on questions. Create polls with multiple options, set time limits, and track real-time voting results. You can choose between:- Text Polls: Traditional polls with text-only answer options
- Image Polls: Visual polls where users vote on image options with optional captions
A Poll must be created first before creating the post. See Poll Creation Guidelines for instructions.
1
Create Poll
Use the Poll Repository to create a poll with questions and options
2
Create Post
Create a post using the poll ID with optional description text
3
Share & Engage
Users can vote and see real-time results in their feeds
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | String | ✅ | Post content (max 10,000 characters) |
pollId | String | ✅ | ID of the created poll |
targetType | Enum | ✅ | Target destination (community or user feed) |
targetId | String | ✅ | Target ID (userId or communityId) |
metadata | Object | ❌ | Custom fields for extended functionality |
Answer Object Structure (Image Polls Only)
For image polls, each answer option requires the following structure:| Parameter | Type | Required | Description |
|---|---|---|---|
dataType | String | Yes | Must be set to 'image' for image polls |
fileId | String | Yes | ID of the uploaded image file |
text | String | No | Optional caption for the image option |
Image Requirements: Images must be uploaded first using the File Repository before creating the poll. Supported formats include JPEG, PNG, and WebP with a maximum file size of 100MB per image.
Text Poll Creation
Image Poll Creation
- iOS
- Android
- TypeScript
- Flutter
Troubleshooting
Poll Creation Failures
Poll Creation Failures
Problem: Poll creation fails before post creationSolutions:
- Verify poll question is not empty
- Ensure at least 2 options are provided
- Check option text length limits
- Validate time limit values are positive
Poll Post Linking Issues
Poll Post Linking Issues
Problem: Post creation fails with invalid poll IDSolutions:
- Verify poll was created successfully
- Check poll ID is correctly passed to post creation
- Ensure poll hasn’t been deleted
Voting Permission Issues
Voting Permission Issues
Problem: Users cannot vote on pollsSolutions:
- Check if poll is still open (not expired)
- Verify user has permission to vote in the target community
- Ensure user hasn’t already voted (for single-vote polls)
- Confirm poll wasn’t closed by moderators
Results Display Issues
Results Display Issues
Problem: Poll results not updating or displaying incorrectlySolutions:
- Implement real-time updates for poll results
- Refresh results when poll post is viewed
- Handle cases where vote counts are not available
- Provide fallback UI for loading states
Image Upload Issues
Image Upload Issues
Problem: Images fail to upload or poll creation fails (Image Polls)Solutions:
- Check file size (must be under 100MB per image)
- Verify supported format (JPEG, PNG, WebP)
- Ensure stable internet connection
- Implement retry logic with exponential backoff
Image Reference Issues
Image Reference Issues
Problem: Image references in polls become unavailable (Image Polls)Solutions:
- Images used in active polls cannot be deleted from file storage
- Consider the poll lifecycle when managing image assets
- Implement proper cleanup after poll expiration
- Implement fallback UI for missing poll option images
- Show placeholder or error state for broken image references
- Consider caching strategies for poll option images
Common Use Cases
Community Feedback
Gather opinions on community decisions and improvements using text polls
Event Planning
Coordinate dates, times, and preferences for events with either text or image options
Design Feedback
Gather visual preferences on UI mockups and design concepts using image polls
Photo Contests
Let communities vote on best photos and creative submissions with image polls
Product Research
Collect user preferences and feature requests using text-based polls
Product Selection
Help users choose between visual product options and variants with image polls
Related Topics
Poll Display
Learn how to create and manage polls before posting
Image Posts
Share single or multiple images in posts
File Upload
Learn about image upload and handling for image polls
Text Posts
Create simple text-based posts with discussions
Community Management
Manage communities where polls drive engagement