Smart Field with multiselect drop down widget

How to create a Smart Field that has multiselect dropdown?

I need to create an input field which has reference to a collection. User should be able to select multiple items from it.

Actual behavior

Currently, all the options allow only single select input.

Failure Logs

None.

Context

Please provide any relevant information about your setup.

  • Package Version: 7.4.0
  • Express Version: 4.16.3
  • Mongoose Version: 5.8.2
  • MongDB Version: 4.2.10
  • Project Name: online-admin-portal

Hello @Shriram_Balakrishnan :wave:, welcome in the community :partying_face:!

Can you share a bit more context with us? What are you trying to achieve with this smart field? Can you share with us the part of your model that is relevant with your request? Can you also share your current smart field definition?

Thanks

@GuillaumeGautreau

We have 2 models - module and multiModule. module can be linked to one or more multiModules.

Our requirement is to have a field in “Add Module” form in which one or more multiModules can be selected and linked to the module. For this, we need a Smart Field in which we can select multiple multiModules.

My current definition of Smart Field - Additional fields that can be added to form to customize the form input.

Hi @Shriram_Balakrishnan,

In order to help you customize your creation form, I might need to take a look at the model definition of the module collection. This model file can be found under the models folder.

No response, let’s consider this issue fixed and close the topic.