Skip Navigation

[Resolved] When type in relationship field full value then I want to show in dropdown.

This support ticket is created 3 years, 2 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 3 voices.

Last updated by darioM-3 3 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#2367811
Screenshot 2022-05-20 at 16.51.22.png
Screenshot 2022-05-20 at 16.51.06.png

Tell us what you are trying to do?
When type in the relationship field full value then I want to show it in the dropdown and then select. I don't want to show value in the dropdown when typing. Is it possible to make that? See images.

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
it is under construction.

#2368005

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Dario,

Thank you for getting in touch.

Unfortunately this is not something that will be possible. This is due to how the select2 field works. It basically operates on the principle of a dynamic search so once you start typing a search is performed to find the correct match for each keystroke that you enter.

Thanks,
Shane

#2368315

Hello Shane,
Thank you for your answer. But it not could be possible let's say after 6 characters to show results in a dropdown, then select?

Thank you one more time.
Regards.

#2369361

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Shane is on holiday today, This is Minesh here and I'll take care of this ticket.

As Shane shared, there is no such feature available, even I tried to check but there is no easy way to manipulate the select2 attributes.

You are welcome to file a new feature request and raise your voice in front of our product manager:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#2369417

Thank you for your feedback.
Regards.

#2369437
jQuery('select').select2({
  minimumInputLength: 6 // only start searching when the user has input 6 or more characters
});

I found this code and working fine as well.

hidden link

Thank you one more time.

#2369439

My issue is resolved now. Thank you!