Hi, Lakshmi K
There is a module called Autocomplete & Multiselect, Multiselect Enumeration and also Bootstrap multiselect widget.
AutoComplete and Multiselect
The best solution for your query is you can use a widget called Bootstrap Multiselect Widget which is available in Mendix Marketplace
Bootstrap Multiselect Widget
Thank you.
The bootstrap multi select should allows you to do what you want :
https://marketplace.mendix.com/link/component/2295