Skip Navigation

[Resolved] How to make multiselect search dropdown

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 6 replies, has 2 voices.

Last updated by Eko Wid 2 years, 9 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2423251
Screenshot 2022-07-23 001452.png
Screenshot 2022-07-23 001440.png

Tell us what you are trying to do?
I want to make multiselect dropdown with search. Similar with form (button) to connect / relationship between two post type on back end. Is there any way to do it on front end form?

#2424045

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Such a feature is not implemented in Toolset. As a workaround you can select the Multiselect option for the search and then integrate the Select2 JS library:

hidden link

After that you need to know the HTML class name of the select in question and add a jQuery code such as this one to enable Select2 on the select option of the search:

https://toolset.com/forums/topic/select2-multiselect/#post-1668027

Please consider that this is custom development work and we can not code the feature for you. The answer above is to give you enough information on what to do.

Alternatively, you are welcome to hire a developer to code the feature:
https://toolset.com/contractors/

Thank you.

#2424119

Hi Christopher,
Thank you for your help.
Just to make sure, is the default post form can save all "selected value" from multiple select?

#2424401

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I did not understand what you mean by "default post form". If you give me a link or screenshot from the front end and backend I will understand what you mean.

What I explained above is for the search functionality of the View and I did not talk about Post Form (Toolset > Post Forms)

Thanks.

#2425661
Screenshot 2022-07-26 232237.png
Screenshot 2022-07-26 232149.png

Sorry for my bad English.
I was talking about multiselect on post form. Can we save more than one selected value data of multiselect field?
I want to modify default multiselect field to be able to select multipole data at once (view : Display People List)

#2426497

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

It is not possible to have a dynamic multi-select field in the post form.

You can add a generic field in the form from the sidebar. That will show a multi-select field but you need to add the select data manually. And it is not like the screenshot you mentioned. It is a simple HTML Multi-select Such as:

hidden link

But it is not what you want because you have a dynamic field. So basically, No there is no option for dynamic multi-select

Thanks

#2427751

My issue is resolved now. Thank you!