# Discourse Surveys

**URL:** <https://meta.discourse.org/t/discourse-surveys/308679>\
**Category:** Plugin\
**Tags:** official, experimental, surveys\
**Created:** [May 20, 2024, 9:46am UTC](https://meta.discourse.org/t/discourse-surveys/308679 "2024-05-20T09:46:58Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![singi2016cn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/singi2016cn/32/532755_2.png) [@singi2016cn](https://meta.discourse.org/u/singi2016cn)\
**Post date:** [November 12, 2026, 8:44am UTC](https://meta.discourse.org/t/discourse-surveys/308679/31 "2026-11-12T08:44:20Z")

</div>

I wish there was a setting to determine whether users can submit survey forms anonymously

[FEATURE: Allow anonymous survey submissions gated by `surveys_allow_anonymous_submissions` by singi2016cn · Pull Request #109 · discourse/discourse-surveys](https://github.com/discourse/discourse-surveys/pull/109)

Previously, only logged-in users could submit survey responses, since `SurveyController` enforced `ensure_logged_in` and `survey_responses.user_id` was `NOT NULL`.

This change adds the `surveys_allow_anonymous_submissions` site setting so signed-out visitors can respond using a per-browser `localStorage` token for de-duplication, and includes anonymous respondents in admin response counts and CSV exports.

## Commits (17 files, +651/−74)

- **Feature** : Site setting + migration (`user_id` nullable, `anon_token`, partial unique index) + backend anonymous path + IP rate limiting + frontend login block removal and token management
- **Fixes** : CSV export missing anonymous replies, admin panel counts omitting them, missing `survey.no_survey_with_this_name`
- **i18n** : 26 keys fully aligned for en + zh\_CN
- **Docs** : README fixed 5 contradictory descriptions, added Anonymous Responses section
- **Tests** : 125 cases passing (lib 26 / requests 38 / system 61)

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/d/9/9d945098a562d5ac3eb6316db480a2d2a1bda632.png)

---

_[View the full topic](https://meta.discourse.org/t/discourse-surveys/308679)._
