Skip Navigation

[Resolved] Creating a Multi Select Relationship Dropdown

This support ticket is created 6 years, 6 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Shane 6 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#911746

Hi,

I am have created a relationship form to relate teacher to an area. Created a relationship between teacher and area which many to many relationship. Working fine to on adding single item to the relationship.

I wanted to add to add multiple area to teacher with just one form submission using the relationship form like:

Post parent: Teacher A
Post Child: area1, area2, area3

The Current process will allow me to add single area to a teacher. I created the form using the autogenerate field in the Relationship forms.

Thanks,
Tim

#911917

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Timothy,

Thank you for contacting our support forum.

Unfortunately this is not something that is possible.

Thanks,
Shane

#912143

So it is impossible in a CRED form to select more than one child post to associate with a parent post? Is that a toolset limitation or something that possibly could be done with custom code?

I'm not sure I understand why something like this would be impossible.

Is there possibly a workaround to get something like this working that you know of?

Tim

#912428

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Timothy,

I believe this is a limitation with Toolset Forms at the moment since there were so many changes in our Types 3.0 update with the relationships.

This actually was never possible to do with CRED as far as I can remember. What you can do is to open a feature request for this.

It can be possible with custom coding but that would be out of the scope of our support forum.

Thanks,
Shane

#912797
adding child cpts.png

I think my confusion is that in the back-end this is very easy to do (see screenshot). Maybe if you let me know whey CRED cannot do this, then I'll have a better idea of how to begin with some custom code.

Tim

#913048

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Timothy,

Personally I couldn't say as i'm not aware of the intricate limitations of why this isn't possible. But the best approach to get something like this is to either write custom code that would create the multiple dropdown, then you can process that multiple dropdown using the CRED hooks.

You will need to set the relationships manually.

Thanks,
Shane