Skip Navigation

[Résolu] Display more information in a relationship select field

This support ticket is created Il y a 3 années. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Luo Yang Il y a 3 années.

Assisté par: Luo Yang.

Auteur
Publications
#2205911

Hello,

I have a CPT called client
a child CPT called project

Another CPT called employee
a child CPT called task

There is a relationship between PROJECT and TASK

In the 'Create a new Task' cred form, I have a select field that allows to choose the PROJECT, displaying only PROJECTS BY CURRENT USER. That's fine.

However, many time a user has to create 2 projects with the same title. In this case, when creating a TASK, he will have a duplicate in the select field without being able to know which one is for which project.

Is there a way to display related information? For example, when selecting the PROJECT relationship item, is there a way to update a field in the form so that it displays the name of the parent CLIENT? Or is there a way to populate the select field with:
'project_name' + 'parent_client' ?

#2206747

Hello,

I assume we are talking about Toolset Forms shortcode [cred_field], see our document:
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_field
There isn't such a feature to add more information in the relationship select field

You can add a feature request for it, our developers will evaluate it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/