Skip Navigation

[Resolved] create form for user to update existing relationship posts

This support ticket is created 3 years, 1 month 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by Julie Tuerk 3 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2174117

Tell us what you are trying to do?
Create a form for user to edit existing relationship posts in account area. I have an existing directory site with custom post types with many-to-many relationships between them. We are upgrading the site so that the organizations can edit their own information. I have figured out how to allow the organizations (users) to update their main post type information, and also add a new post with while creating a relationship through the documentation for forms. One thing I can't figure out is how to allow the user to edit the existing post relationships which we have put in place. Is this possible?

Is there any documentation that you are following?
https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/

What is the link to your site?
hidden link Here, we would like for the user/org "Breakwater Health Network" to be able to 1. Edit their HCCN info (I have this figured out) 2. Add an EHR, PHM, etc and connect the post (I have this figured out) and 3. Edit the existing EHR, PHM ,etc. posts/relationships we already have on the site using a form (**WHAT I NEED HELP WITH)

#2174943

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean that you want to edit the custom fields belongs to intermediary post type? OR you just want the users to allow to change the existing connections?

If you want the users to edit the existing connections, you will have to use the post relationship forms:
=> https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/

#2177899
Screenshot (28).png
Screenshot (26).png

Hi I was able to create the relationship form to edit the existing relationship post. and now I'm getting this error message:
EDITED: This only happens when I try to un-check the checkboxes on the form. If I simply change the radio buttons or check additional checkboxes, the form saves and the relationship post is updated as it should be.

#2178365

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share problem URL and steps I need to follow that should lead me to see the issue you mention.

Please share admin and addon frontend user access details if required.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2180913

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm not sure whats happening here but I could not able to see any Edit link under the section " Electronic Health Record Systems".

Do I require to login as frontend user? If yes, can you please share access details for frontend user.

I have set the next reply to private which means only you and I have access to it.

#2181485

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thanks for the frontend user access details and its working. I logged in using the shared information and then navigate to:
=> hidden link

Under the section "Electronic Health Record Systems" I click on the edit link "Edit this EHR" available with the item "Athena" and I show me edit form. On edit form I checked the checkbox "Vendor Contract Technical Assistance: External Support" (the last checkbox) and saved the form and when I edit the form again I see the checkbox x "Vendor Contract Technical Assistance: External Support" is checked.

Do you mean that once I checked this additional checkbox "Vendor Contract Technical Assistance: External Support" and saved the form, this checkbox is not get displayed under section "External Support" when we view the "Athena" item?

#2181995

Minesh,
I have also been able to check additional checkboxes. What doesn't work is un-checking or removing the checkboxes. If you try to edit the form again, and un-check or deselect something that was previously checked (for example Vendor Contract Technical Assistance: External Support that you just checked) and save the form, it will not remove items that were previously selected and we get an error.
Thank you.

#2183637

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

This is a known issue to us and we escalated it in front of our Devs but we do not have any ETA on it when the fix is offered.

There is one known issue but this one is opposite of what you are experiencing. With the following issue checkbox option remains unchecked even though you checked it and in your case checkbox option remains checked even though its unchecked.
- https://toolset.com/errata/custom-checkboxes-fields-are-not-saved-in-post-relationship-forms/

I've added all those required details to our internal ticket and to be honest there is no workaround available and you will have to wait a bit until the fix is offered.

#2184687

Wow that is a huge disappointment. I'm going to have to rethink how I will allow users to update their data