There is a popular Wix code snippet most of the Wix code community uses thanks to Nayeli and Totally codeable platform but the problem started is when the code is repeatedly use.
Why you shouldn't repeat the code? What is DRY(Don't Repeat Yourself)?1. It will be easy to maintain the code.2. Improve the performance of the site To know more about the uses of DRY, Check this thread from stack exchange
In this example you can set the dropdown options as many you want just adding one more line ( Without rewriting the whole function again )with the detail about the collection name , dropdownPropertyId and the column (filed Key) of that database