NueForm

Fuse Poll Activities

Classic Poll, Multi-Vote Poll, Image Poll, This or That, Ranked Poll, Elimination Poll, Sliding Scale, और Would You Rather activities का documentation।

Classic Poll

एक option चुनें और live percentages को real-time में update होते देखें जैसे दूसरे vote करते हैं।

Activity type: classic_poll

Configuration

PropertyTypeविवरणDefault
optionsarrayPoll options का array। प्रत्येक में id, label, और optional color है।2 default options

Option Object

FieldTypeविवरण
idstringOption के लिए unique identifier।
labelstringOption के लिए display text।
colorstringOption के bar/highlight के लिए accent color। Set न होने पर color palette से auto-assign होता है।

Behavior

  • प्रत्येक participant बिल्कुल एक option के लिए vote कर सकता है।
  • Vote करने के बाद, participant live results (percentages और vote counts) देखता है।
  • यह single-action activity है: vote करने के बाद, participant read-only mode में enter होता है।

Display Modes

Modeविवरण
inline_barsResults प्रत्येक option के भीतर horizontal bars के रूप में दिखाए जाते हैं।
bar_chartResults अलग vertical bar chart के रूप में दिखाए जाते हैं।

Aggregated State

FieldTypeविवरण
optionsPollOption[]Vote counts, percentages, और voter lists के साथ options।
totalVotesnumberCast किए गए votes की कुल संख्या।
myVotesstring[]Current participant द्वारा vote किए गए option IDs।

CSS Selectors

.fuse-classic-poll, .fuse-poll, .fuse-poll--bar-chart, .fuse-bar, .fuse-bar-label, .fuse-option, .fuse-option-label, .fuse-option-percentage, .fuse-option-votes


Multi-Vote Poll

एक साथ multiple options के लिए vote करें। "Select all that apply" scenarios के लिए perfect।

Activity type: multi_vote_poll

Configuration

PropertyTypeविवरणDefault
optionsarrayid, label, और optional color के साथ poll options का array।2 default options

Behavior

  • Participants multiple options के लिए vote कर सकते हैं।
  • Votes toggle on और off किए जा सकते हैं -- voted option click करने पर vote हट जाता है।
  • यह multi-action activity है: participants किसी भी समय अपने votes बदल सकते हैं।
  • Votes toggle होने पर results real-time में update होते हैं।

Aggregated State

Classic Poll के समान।

CSS Selectors

.fuse-multi-vote-poll, plus सभी shared poll selectors।


Image Poll

Text की बजाय images पर vote करें। Design picks, outfits, या product choices के लिए बढ़िया।

Activity type: image_poll

Configuration

PropertyTypeविवरणDefault
optionsarrayPoll options का array। प्रत्येक में id, label, और imageUrl है।2 default options

Option Object

FieldTypeविवरण
idstringUnique identifier।
labelstringImage के नीचे display होने वाला text label।
imageUrlstringइस option के लिए display होने वाली image का URL।
colorstringOptional accent color।

Behavior

  • Options labels के साथ image cards के रूप में display होते हैं।
  • प्रत्येक participant एक image के लिए vote कर सकता है।
  • यह single-action activity है।
  • Results vote percentages images पर या नीचे overlaid दिखाते हैं।

Aggregated State

Classic Poll के समान, प्रत्येक option पर imageUrl उपलब्ध।

CSS Selectors

.fuse-image-poll, plus सभी shared poll selectors।


This or That

दो options के बीच binary swipe-style choice, live percentage splits के साथ।

Activity type: this_or_that

Configuration

PropertyTypeविवरणDefault
optionsarrayid, label, और optional color के साथ बिल्कुल 2 options।[{ label: "This" }, { label: "That" }]

Behavior

  • दो options split-screen layout में side by side present होते हैं।
  • प्रत्येक participant दो options में से एक select करता है।
  • यह multi-action activity है: participants अपना vote switch कर सकते हैं।
  • Live percentage split दो panels के बीच visual divider के रूप में display होता है।

Aggregated State

Classic Poll के समान (बिल्कुल 2 options के साथ)।

CSS Selectors

.fuse-this-or-that, .fuse-panel--left, .fuse-panel--right, .fuse-panel-label, .fuse-panel-percentage


Ranked Poll

Options को अपने preferred order में rank करने के लिए drag करें। Community consensus ranking उभरते देखें।

Activity type: ranked_poll

Configuration

PropertyTypeविवरणDefault
optionsarrayRank करने के लिए options का array। प्रत्येक में id, label, और optional color है।3 default options

Behavior

  • सभी options एक list में display होते हैं।
  • Participants items को most preferred से least preferred तक reorder करने के लिए drag करते हैं।
  • Submit करने के बाद, participant की ranking record होती है।
  • यह single-action activity है: ranking एक बार submit होती है।
  • Consensus ranking सभी participants की rankings average करके calculate होती है।

Aggregated State

FieldTypeविवरण
optionsarrayid, label, avgRank, और rankings count के साथ options।
totalParticipantsnumberRankings submit करने वाले participants की कुल संख्या।

CSS Selectors

.fuse-ranked-poll, .fuse-rank-number, plus shared selectors।


Elimination Poll

Multi-round voting जहां हर round में lowest-voted option eliminate होता है जब तक winner नहीं बचता।

Activity type: elimination_poll

Configuration

PropertyTypeविवरणDefault
optionsarrayid, label, और optional color के साथ options का array।2 default options

Behavior

  • Participants current round में अपने favorite option के लिए vote करते हैं।
  • Round complete होने के बाद, सबसे कम votes वाला option eliminate होता है।
  • बचे options के साथ नया round शुरू होता है।
  • यह process तब तक repeat होता है जब तक केवल एक option बचता है -- winner।
  • यह multi-round activity है: participants को subsequent rounds में voting जारी रखनी होती है।
  • जो participants पहले से round में vote कर चुके हैं वे अगले round में vote करने के लिए rejoin कर सकते हैं।

Aggregated State

FieldTypeविवरण
currentRoundnumberCurrent round number।
activeOptionsPollOption[]Vote data के साथ अभी भी competition में मौजूद options।
eliminatedOptionsarrayअब तक eliminate हुए options, जिस round में eliminate हुए उसके साथ।
totalVotesThisRoundnumberCurrent round में कुल votes।
isCompletebooleanElimination conclude हुआ है या नहीं (एक winner बचा)।
winnerobjectWinning option (isComplete true होने पर set)।

CSS Selectors

.fuse-elimination-poll, .fuse-round-label, .fuse-champion, plus shared poll selectors।

Elimination Polls 4+ options के साथ सबसे अच्छा काम करते हैं। केवल 2 options के साथ, यह effectively single-round Classic Poll बन जाता है।


Sliding Scale

Spectrum पर अपनी position रखें और सभी responses का live distribution curve देखें।

Activity type: sliding_scale

Configuration

PropertyTypeविवरणDefault
minnumberScale पर minimum value।0
maxnumberScale पर maximum value।100
stepnumberSlider के लिए step increment।1
minLabelstringScale के minimum end के लिए label।""
maxLabelstringScale के maximum end के लिए label।""
scaleStylestringSlider track की visual style।"thin"
barColorstringDistribution bars के लिए custom color।"" (theme accent उपयोग करता है)

Behavior

  • Participants spectrum पर value select करने के लिए slider drag करते हैं।
  • Submit करने के बाद, वे सभी responses का distribution दिखाने वाला histogram देखते हैं।
  • Statistics (average, median, total responses) display होते हैं।
  • यह single-action activity है।

Aggregated State

FieldTypeविवरण
distributionnumber[]Histogram bucket counts (जैसे, min से max तक 10 buckets)।
averagenumberसभी responses की mean value।
mediannumberसभी responses की median value।
totalResponsesnumberResponses की कुल संख्या।
minnumberScale minimum value।
maxnumberScale maximum value।

CSS Selectors

.fuse-sliding-scale, .fuse-slider, .fuse-slider-value, .fuse-slider-label, .fuse-stats, .fuse-histogram, .fuse-histogram-bar, .fuse-stat-value, .fuse-stat-label


Would You Rather

दो dilemmas में से चुनें और live split देखें। अंतहीन बहस योग्य।

Activity type: would_you_rather

Configuration

PropertyTypeविवरणDefault
optionsarrayid, label, और optional color के साथ बिल्कुल 2 options।[{ label: "This" }, { label: "That" }]

Behavior

  • दो options side by side present होते हैं।
  • Participants एक option चुनते हैं।
  • यह multi-action activity है: participants अपनी choice switch कर सकते हैं।
  • Live percentage split visual divider के रूप में दिखाया जाता है।

This or That से अंतर

Would You Rather और This or That functionally identical हैं। अंतर thematic है:

  • This or That: General preference comparisons (जैसे, "Coffee or Tea?")।
  • Would You Rather: Dilemma-based questions (जैसे, "Would you rather fly or be invisible?")।

Aggregated State

Classic Poll के समान (बिल्कुल 2 options के साथ)।

CSS Selectors

.fuse-would-you-rather, .fuse-panel--left, .fuse-panel--right, .fuse-panel-label, .fuse-panel-percentage

Color Palette

जब options के पास custom color assign नहीं होता, NueForm स्वचालित रूप से vibrant palette से colors assign करता है:

  1. Indigo (#6366f1)
  2. Amber (#f59e0b)
  3. Emerald (#10b981)
  4. Red (#ef4444)
  5. Violet (#8b5cf6)
  6. Cyan (#06b6d4)
  7. Orange (#f97316)
  8. Pink (#ec4899)
  9. Teal (#14b8a6)
  10. Purple (#a855f7)
  11. Lime (#84cc16)
  12. Rose (#e11d48)

Colors option की position के आधार पर sequence में assign होते हैं। जब options colors से अधिक हों, palette wrap around होता है।

अंतिम अपडेट: 6 अप्रैल 2026