Skip Navigation

[Escalated to 2nd Tier] Front-end relation form editing deletes intermediary custom field value

This support ticket is created 4 years, 9 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 – 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 5 replies, has 2 voices.

Last updated by Luo Yang 4 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1583481

First thing first. What a great tool. Tough to apprehend but so powerful. It really helps making wordpress be a real management tool.

Tell us what you are trying to do?
I'm setting up a website (WordPress + Oxygen + Toolset) dedicated to manage our projects. I created via toolset 3 CPT : Projects, Tiers and Contacts, most of them interlinked between each other via M2M relationships and up until now, it's working great even if i can't benefit from the great work you seem to have done with Gutenberg Integration

The problem :
- On the front-end project page (single), i list the contacts and their position inside the project. M2M relationship between "Project" and "Contact" with one custom field inside the relationship type to define the position.
- I set up my relationship form for editing/deleting the relationship and have it inside the loop of my view which is then displayed via shortcodes. All the fields are displayed correctly, no problem on this, Toolset and Oxygen work pretty well together.
- Problem : when editing the relationship ('Edit this...' link), i get to the relationships form and edit the fields and once I submit, it doesn't edit, it erases the value in the relationship type custom field.
By the way, on deletion of the link, it would be nice to have a small waiting loop animation to know it's happening.

Is there any documentation that you are following?
Googling about this and relationship and tons of reading on Toolset's forum. No success but learnt a lot

Is there a similar example that we can see?

What is the link to your site?
It's for internal use, so not public at all : hidden link
I can set up an admin account
- CPT concerned : Projets (ex on front-end : hidden link)

By the way, i start to understand why no M2M between CPT of same kind. But that would be great. Projects could be linked, contacts could be third party.... That would streamline everything and open to new possibilities

Thanks in advance

#1583831

Hello,

The problem you mentioned above is abnormal, please check these:
1) Make sure you are following our document to setup the edit relationship form:
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/editing-existing-connections-between-related-posts/

2) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

3) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code snippets, and test again

4) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

5) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and form URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1584581

Thanks for the details, I can see the problem in your website, and I am downloading the files, will update here if there is anything found

#1584741

I can duplicate the same problem with custom checkboxes field of intermediate post type, and have escalated it, will update here if there is any news.

#1584869

Great. Thank you Luo Yang. Waiting for your news.
Have a great day !

#1586273

It is confirmed as a bug, I will keep on updating here if there is any news.