Hi Michelle,
Thank you for sharing the admin access.
I've performed some tests on my website, with a similar setup, and here are my findings:
1. Adding new relationship entry:
As explained in the documentation ( ref: https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/ ) and in the information windows when adding relationship form or their links ( example screenshot: hidden link ), when we need to create a new post-relationship using a relationship form, the form needs to be placed on a new page ( and not in a content template ).
I created a new page named "Add new EHR" on my website and inserted the Form block with "Connect between any EHR and a HCCN as an EHRs", while selecting the relationship form "Manage EHRs".
Next, in the "Single HCCN" content template, I inserted the link to that newly created page through the "wpv-post-link" shortcode
( ref: https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-post-link )
[wpv-post-link item="14"]
Note: Please replace 14 with the actual page ID of this new page on your website.
As a result, when the user clicks this link, he/she is taken to this new "Add new EHR" page where the form is shown to create a new connection.
2. Editing existing relationship entry:
This part is challenging because the interface to add the link to the form edit content template, expects to be inserted into a view that shows "HCCNs" posts, where a post-relationship query filter with respect to "EHRs" posts, exists.
But in your "Single HCCN" content template, you need the link inside a view that lists "EHR Relationships Intermediary Posts" posts.
In this case, you can generate the link to edit the content template for the relationship form manually and this is the expected format:
link-to-single-intermediary-post-url/?cred_action=edit_current&content-template-id=123
Where 123 should be the ID of the content template, in which you have placed the relationship form.
This means that in your view for the "EHR Relationships Intermediary Posts" posts, you can generate this link by adding the following code in a "Fields and Text" block:
<a class="cred-edit-relationship" href="[wpv-post-url]?cred_action=edit_current&content-template-id=1795">Edit this EHRs</a>
Note: The "1795" is the ID of the content template "Manage EHRs" on your website.
I hope this helps and please let me know if you need any further assistance around this.
As for the issue with updating the "Single HCCN" content template, I'm going to split it into a separate ticket and will reply to it, shortly.
regards,
Waqar