I am trying to:
- show a list of parent post titles in dropdown field in CRED form
[cred_field field='_wpcf_belongs_potential-st_id' value='' order='title' ordering='asc' no_parent_text='']
CRED version 1.9.5, other toolset plugins updates to lates version, WP also latest version
Link to a page where the issue can be seen:
- screenshot attached
I expected to see:
- list on parent post titles
Instead, I got:
- search box with to search post titles
There is no setting for this, I would have pointed this out in case we would offer it.
We use a library called "Select2" hidden link
You could limit the number of posts output, but that is eventually not what you look for.
See the options in the CRED Form > Add Post Fields > Parents
The reason that this select2 has been added is mainly performance.
Loading 150 posts in a select field are not ideal and neither User-Friendly.
Letting the user type and search + having a fast query is nicer in this case.
It's not customer public website. Current site is more for a company internal use.
In the current case it is not a problem to wait some seconds more, if needed, to load dropdown values. To make it faster, dropdowns can be loaded with ajax.
While adding the search box to select field, from the UX perspective, we could expect something like this, please see the attachment.
We take that into account. Probably we stay in CRED 1.9.2 version until that issue will be solved. Because it impacts the UX too much for us, sry. CRED 1.9.2 does not work with latest Types plugins version, but from other side we look forward to get updates.
If there is a limit, then could be nice if the number of values displayed can be changed from CRED field settings.
Could be nice if there can be set up from CRED field settings that is the search box displayed or not in the select dropdown. If set to "no", then it could be normal dropdown.
In addition we are looking forward that displayed values can be filtered by some post fields, to display only relevant posts in the dropdown. (i.e. if it is real estate property dropdown then i would like to see in the house contact CRED form only house type (custom field) of properties, not all types of properties.)