Under options select (linked table), is it possible to have a search field for the select picker?

Under options select (linked table), is it possible to have a search field for the select picker?

dtbaccountdtbaccount Posts: 5Questions: 1Answers: 0

Editor is working perfect with option as select to pick some possibilities.
Although, when the list becomes too large, we prefer to have a search function here.
Is this possible?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Not with the built in select field type, since that just uses a simple select.

    However, there are a couple of options:

    1. Use a datatable field type with server-side processing to search records.
    2. Use a library such as Select2. We do have a plug-in for Select2 to work with Editor.
    3. Add a text input field and bind your own Ajax call to it, then use field().update() to update the list of options as they come in.

    Allan

Sign In or Register to comment.