I am trying to:
Connect a relationship post type to a record through the relationship section of the page. For example, I have a House record that I want to connect an "Exterior" post type to. The Exteriors are letters A - N. However, the field to connect is looking for 3 characters to query. I don't have 3 characters. I believe this is a new behavior since the last updates.
Link to a page where the issue can be seen:
(backend) hidden link
I expected to see:
My list of exterior records pop up (Letters A through N)
Instead, I got: (Screenshot) and a message that I need to enter 2 more characters
I am able to do the reverse - Connect a House Record to and Exterior. But that's not the way information is usually entered.
Hello. Thank you for contacting the Toolset support.
I will have to check what file is called when you try to search with the select2 search box.
Can you please share problem URL where you want to search with one character as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Minesh is on vacation, so I'll be following up on this ticket.
The minimum length for the input characters was set to 3, to limit the number of AJAX calls to the server and thus improve performance. However, I can see that it can be a challenge for cases like yours, where the post titles are set to have only a single alphabetical character.
I'm afraid, there is no hook or filter available, to change this behavior through code customization, so it will require editing the core file in the Toolset Types plugin.
In the file "/wp-content/plugins/types/public/page/extension/related_content/viewmodels/ListingViewModel.js", you'll find the following code at line 456:
minimumInputLength: 3,
You can change that value from '3' to '1' and the AJAX search for the related posts dropdown will start, even with a single character input.
Note: Future updates to the plugin will overwrite any changes that you've made to the plugin files directly and you'll have to add back those changes again.
I hope this helps and please let me know if you need further assistance.