I have a use case where I can't allow user to select parent in the RFG form itself, so I have to do it programmatically.
I am using cred_save_data and toolset_connect_posts to do it.
Parent ( parent post - It's a user proxy) is only for every user and there is a RFG child which can be multiple. Now I have added the add RFG from in a view where I have queried for the posts of logged in user(author) . I get it's parent ID, from there and try passing it using forms hidden field like this :
````````````
Hidden Form
Slug : parent-id
Default : [wpv-post-id]
If no, I need problem URL where you added the form as well as access details.
*** 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.
Now, I see once you add a child entry, it will automatically find the parent post ID based on the loggedin user ID (author) and connect that ID as a parent.