# Poll-restriction

**URL:** <https://meta.discourse.org/t/poll-restriction/264051>\
**Category:** Product Support\
**Tags:** groups, polls\
**Created:** [May 6, 2023, 7:07am UTC](https://meta.discourse.org/t/poll-restriction/264051 "2023-05-06T07:07:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [June 8, 2023, 2:23pm UTC](https://meta.discourse.org/t/poll-restriction/264051/3 "2023-06-08T14:23:10Z")

</div>

Alternatively, if your categories’ security settings aren’t going to change over time, you could create a JS script that returns the current category, and accordingly changes the poll’s default settings following this example:

[https://meta.discourse.org/t/changing-the-default-settings-when-users-build-polls/220022/10?u=canapin](https://meta.discourse.org/t/changing-the-default-settings-when-users-build-polls/220022/10)

---

_[View the full topic](https://meta.discourse.org/t/poll-restriction/264051)._
