Skip Navigation

[Resolved] Display more information in a relationship select field

This support ticket is created 3 years ago. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years ago.

Assisted by: Luo Yang.

Author
Posts
#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/