List items in dropdown in a module?
Hello,
I know how can we add a drop down from a taxonomy in our custom module. But can we have a dropdown field in our custom module that shows items from another modules items (not from taxonomy)?
Hello Saad,
You can bind the Choices collection of the Multiple Choice field to a custom collection that you could get through your custom module's API. It can be done the same way that the TaxonomyDropDown field is implemented in our Products Module - you should inherit from ChoiceField, override the Configure method, bind the Choices collection to the collection that you have get through your custom module's managers, touch the client-side script and use your field.
Regards,