Tell us what you are trying to do?
Hi. Loving Toolset - Thank you! Well done! I have a Front End form that uses the following code to display a form with the child (Complaint) pre-populated from the query string sent from the previous page.
[cred-relationship-form form='assign-investigator-to-complaint' child_item='[current_case]']
The shortcode [current_case] gets the query string sent from the previous page which is the Complaint ID that we're adding an Investigator to. The relationship is one (Complaint) to Many (Investigators). I'm looking to add a Delete button that deletes the relationship and so removes the Investigator from that Complaint. The Front end forms are all hidden behind logins so I'd need to give you Login details to look at it properly. I'm not sure how to send you login details securely.
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site?
hidden link
Hello,
You can try Toolset Forms shortcode: [cred-delete-relationship], for example, if it is in a post view querying child investigator posts, you can use below shortcode:
[cred-delete-relationship type="button" role_items='$fromViews' relationship='complaint-investigator' redirect='self']Disconnect relationship[/cred-delete-relationship]
See below test site:
Login URL:
hidden link
Single Complaint post:
hidden link
Click button "Disconnect relationship"
More help:
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred-delete-relationship
My issue is resolved now. Thank you!