Hi, i was having the same problem.. now i figured out how to accomplish with multiple custom fields!
beyond setup the plugin.rb you will also need to have individual files (js initializer and the .hbs and .hbr templates) for each field!
the discourse-topic-custom-fields plugin have a folder called
plugins/discourse-topic-custom-fields/assets/javascripts/discourse/initializers
in this folder you have a file called: topic-custom-field-initializer.js.es6
for a single field you can just edit this file, but for multiple fields you should have other files like this,
topic-custom-field-url-initializer.js.es6 and topic-custom-field-price-initializer.js.es6
inside each file you will have 3 lines with a variable api calling a method registerConnectorClass, you need to change the second parameter and add a suffix to have an exclusive name for each field class on each of the 3 lines
dont forget to change the exports name in each file (right after the “exports default {…”).
also, for the hbs and hbr files, you will need to create separated files for each field too, you just need to copy and paste the same files and just add a suffix for each file name, eg.:
