Maybe an odd request, but I’m interested in creating an “opt in” poll that just has one option, but the poll is throwing an error. Is there any way, even a workaround, that can work?
AI-generated summary
A user tobiaseigen requested a single-option poll but encountered an error. cpradio suggested adding a fake second option, while pfaffman proposed making both options “yes”. Mittineague recommended using the checklist plugin or hiding a “no” option with CSS.
tobiaseigen ultimately decided not to use a poll, but codinghorror and sam agreed that allowing single-option polls could be useful. Remah suggested a workaround using a regular poll with two options.
markvanlan noted that allowing single-option polls would require adding a “clear vote” button to undo votes. However, codinghorror decided to ignore this issue for now. markvanlan later merged a pull request that allows for single-option polls.
Put in a fake second option, delete it once it is in the composer and see what happens?
make both options “yes”. ![]()
I was thinking that instead of using a poll as a checkbox maybe the checklist plugin could do what you need
But AFAICT, it won’t.
Maybe make a “no” option and then use CSS to display: none it?
Then there will likely be a “100%” showing, so it feels like this is getting into new plugin territory to me.
How about “Like this post if you’re going to be there
!”
But you can’t un-like to say you won’t, which I think is probably also a problem with a poll.
Another solution is a wiki, maybe.
@tobiaseigen if you want two options, instead of one, then a poll already works.
Thanks, all! Really appreciate all the suggestions.
In the end, I decided to just bag the poll in this case. Interestingly, I got a handful of likes already to the topic without even asking for it, so people seem enthusiastic and are showing it. ![]()
I do think that down the road it might be of value to allow one option to choose from, but it’s not a high priority for me. Perhaps someone else wants to make it possible at some stage. The 100% showing issue seems to be the only potential snag, beyond the UX tweaks that would be needed.
هل يجب أن يكون خيار تصويت واحد فقط ممكنًا @sam @eviltrout؟ أظن أن ذلك قد يكون مقبولاً؟
أوافقك الرأي، ففي هذه الحالة المحددة، هذا منطقي.
حسناً @eviltrout، أفترض أن هذا القيد سهل الترخيص، لذا يمكنك تخصيصه؟
المشكلة الأصلية قابلة للحل مثل أي استجابة RSVP أخرى حيث ترغب في معرفة الأعداد. عادةً ما يكون من المفيد معرفة من كان يريد الحضور.
- نعم، سأكون حاضرًا! أراك يوم الجمعة!

- لا، للأسف، لا أستطيع الحضور!

تعديل: فهمت الآن. إظهار الإحصائيات سيكون مفيدًا.
تعديل مجدد: أعتقد أن خيار الاستطلاع الواحد يسهل الأتمتة لأنه يوجد نتيجة واحدة فقط.
من السهل السماح بخيار واحد فقط للاستطلاعات. ومع ذلك، نحتاج إلى إضافة زر ‘مسح التصويت’.
بشكل عام، لا يُعد هذا مشكلة في الاستطلاعات الأخرى، لأن الخيارات تغطي طيف الإجابات. مع وجود خيار واحد فقط، لا يمكنك إلغاء تصويتك حاليًا.
هل يجب أن نعرض زر ‘مسح تصويتي’ في كل استطلاع؟
لا، تجاهل ذلك مؤقتًا. إذا قمت بإعداد استطلاع خيار واحد، فلا يمكن التراجع عن التصويت. هكذا الأمور.
لقد دمجت للتو PR الذي يتيح استطلاعات الرأي ذات الخيار الواحد ![]()
- تبدو رائعة


