Skip Navigation

[Resolved] Intermediary fields not saved in a relationship form (many to many)

This thread is resolved. Here is a description of the problem and solution.

Problem: I have several custom fields associated with a M2M relationship intermediary post, and a Relationship Form that allows Users to create these relationships on the front-end. When WPML is active, the custom field values are not saved when I submit the Relationship Form.

Solution: Update to the latest version of Toolset plugins.

This support ticket is created 6 years, 4 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 10 replies, has 2 voices.

Last updated by Ahmed 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#922084

I am trying to:

Link to a page where the issue can be seen:

I expected to see:

Instead, I got:

I am trying a many to many relationship for the first time to I am not sure if I am doing something wrong here. I setup a many to many relationship between two CPTs called Doctors and Patients. There are intermediary fields between both.
I then setup a relationship form (that connects any doctor to any patient) on this page:

hidden link

The problem: The relationship between the selected doctor and the selected patient is formed but the intermediary form is not saved.

What am I doing wrong here?

#922212

The problem: The relationship between the selected doctor and the selected patient is formed but the intermediary form is not saved.
Can you tell me a bit more about this?
- Does this relationship use an intermediary post type? You can find this by going to Toolset > Relationships and clicking the relationship name.
- If it uses an intermediary post type, is it visible in the wp-admin menu?
- Where are you looking to find these saved fields in wp-admin after you submit the form?

#922723

Hello Christian.

Yes this many to many relationship is using an intermediary post type, namely "Doctors Patients" which is the default name given to it by toolset. And yes, this post type appears in the wp-admin menu under the name "History Library" and that is where I check to see if the fields are saved. I find that the relationship is formed (i.e the patient becomes a child of the selected doctor, as seen on his/her page in the backend) but the fields of the intermediary post type in "history library' are all empty.

#923122

And yes, this post type appears in the wp-admin menu under the name "History Library" and that is where I check to see if the fields are saved
What about in the Doctor or Patient post, do you see the custom fields appear in the post relationship panel?

If not, I'll need to log in and take a closer look. Please provide login credentials in the private reply fields here.

#947794

Okay thanks for the information. I have been able to replicate this issue locally and I am escalating to my 2nd tier support team for additional investigation. Please stand by and I will update you shortly.

#948331

A quick update today to let you know that this issue has been escalated to our developers as a priority task. I will keep you posted here as I receive more information.

#948896

Thank you Christian. Appreciate your help. I think you are aware that I have another ticket posted earlier and handled by you as well on hidden link regarding parent not being saved in a post form. What is baffling to me is that clinics.exeera.com is a completely separate installation of wordpress and toolset (also fresh, done after the major types 3.0 update, so update errors ruled out, unlike the first case) with minimal number of plugins and yet I am having another fundamental error in the core of toolset itself. So two major problems in two separate installations of wordpress/toolset. Is it something related to my hosting service? is it something in wordpress installation that I do? or is it just my bad luck?

It is baffling to me. Any thoughts on this?

#949163

Unfortunately I think it's just bad luck, this is a bug unrelated to your hosting environment. The good news is Forms 2.0.2.1 has been released, and it includes a fix for this issue.

#949228

Great. I will test that forms version tonight and give you feedback. Thank you!

#949250

Please let me know if the issue is not resolved. Thanks!

#949359

That update resolved my problem. Thank you very much Christian.