Skip Navigation

[Resolved] Additional question about "Custom select field that pulls titles from a content

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by brettB-4 1 year, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2605579

Please see this ticket that Luo Yang assisted us with:

https://toolset.com/forums/topic/custom-select-field-that-pulls-titles-from-a-content-type/

I have an additional question about this. Please see the page we've set up using this here:

hidden link

On that page the Team 1 and Team 2 fields are the ones using this.

My question here is to see if there is a way to get the dropdown to show ALL available teams instead of just a few along with an Autocomplete feature. As it works now, the dropdown is showing the first 10 available Team options when you click on it. But we currently have 26 teams. We're using this Toolset form as our method to set up our Match schedule. I think it would be easier for the person that will be submitting these forms to create the Matches if ALL available teams are available in the dropdown without having to use the autocomplete feature to see the ones that aren't in the first 10.

Thanks in advance if you have a solution for this. If not, we'll be OK using it as is. I just wanted to see if we could improve it this bit more.

#2605603

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

You can change the number of posts displayed with the select2 dropdown using the filter "cred_select2_ajax_get_potential_relationship_parents_query_limit":

What if you try to add the following code to the "Custom Code" section offered by Toolset:

add_filter('cred_select2_ajax_get_potential_relationship_parents_query_limit', function($limit){
  return 50;
});

More info:
- https://toolset.com/documentation/programmer-reference/adding-custom-code/using-toolset-to-add-custom-code/#adding-custom-php-code-using-toolset

#2605675

My issue is resolved now. Thank you!