# Can topic templates have javascript?

**URL:** <https://meta.discourse.org/t/can-topic-templates-have-javascript/146192>\
**Category:** Product Support\
**Created:** [March 30, 2020, 7:49pm UTC](https://meta.discourse.org/t/can-topic-templates-have-javascript/146192 "2020-03-30T19:49:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![xceph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xceph/32/174216_2.png) [@xceph](https://meta.discourse.org/u/xceph)\
**Post date:** [March 30, 2020, 7:49pm UTC](https://meta.discourse.org/t/can-topic-templates-have-javascript/146192/1 "2020-03-30T19:49:18Z")

</div>

Id like to create templates which have required fields, ideally these would be via dropdown selection boxes.

For example, if a field required the user to list their favourite animal they could choose from a box containing: “Dog, Cat, or Gargoyle”, I’d really like to provide options rather than have free form entry. Is this or anything similar possible?

---

_[View the full topic](https://meta.discourse.org/t/can-topic-templates-have-javascript/146192)._
