Navigation überspringen

[Gelöst] Relationship limited to 10 in the select box

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

Disable the select2 feature of parent selector in Toolset post form.

Solution:

You can disable the select2 feature of parent selector by using use_select2="never" attribute.

Relevant Documentation:

https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field

This support ticket is created vor 5 Jahren, 7 Monaten. 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Pat vor 5 Jahren, 7 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#1278139

Pat

Hello,

I'm using single to many relationship and have placed a relationship field inside a Cred.
When I'm using it in the front end, only 10 items are displayed inside the select box. All other are nor displayed.
Here is my code :

[cred_field field='@psychologue-product.parent' class='form-control' output='bootstrap' select_text='Choix du Psychologue']

Is there a way to ensure all items are displayed?

Regards
Pat

#1278169

Hello,

I suggest you try to disable the select2 feature of parent selector by using use_select2="never" attribute, see our document:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field
use_select2 Optional. Used in parent select fields. Options are always and never. It will render the parent select field as a Select2 field or not, depending on the value set.

#1278195

Pat

Hi Luo,

That's working fine with use_select2='never'
Thanks for the info.
Perhaps, would be good to add this in the documentation page?

Regards
Pat