You can use a subflow to do this.
- Set the mqtt-in topic to
${TOPIC}
- Wrap that node in a subflow.
- 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.