# List of topic choices in mqtt-in

**URL:** <https://discourse.nodered.org/t/list-of-topic-choices-in-mqtt-in/43001>\
**Category:** General\
**Created:** [22 March 2021 12:30 UTC](https://discourse.nodered.org/t/list-of-topic-choices-in-mqtt-in/43001 "2021-03-22T12:30:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [22 March 2021 16:10 UTC](https://discourse.nodered.org/t/list-of-topic-choices-in-mqtt-in/43001/6 "2021-03-22T16:10:09Z")

</div>

You can use a subflow to do this.

1. Set the mqtt-in topic to `${TOPIC}`
2. Wrap that node in a subflow.
3. Edit the subflow properties and define a property called `TOPIC`. By expanding the row in the properties table, you can customise the UI for how the property will be shown. One of the options is a select box where you can predefine a set of options.

---

_[View the full topic](https://discourse.nodered.org/t/list-of-topic-choices-in-mqtt-in/43001)._
