Hello. Thank you for contacting the Toolset support.
Well - do you want to display parent post field on the review form or you just want that it should be automatically attach the post to parent or remain by default selected?
Please share access details as well so I can see the review form. I have set the next reply to private which means only you and I have access to it.
Sorry but could you please share problem URL where I can see your review form and what do you want exactly.
As I understand - review form is added to parent post already and when you write review, you want to connect to it's associated parent where the review form is displayed automatically?
I've added following code to your current theme's functions.php file to dynamically connect the parent/child post using Toolset Form hook cred_save_data with post relationship API function toolset_connect_posts
add_action('cred_save_data','func_connect_child_posts',15,2);
function func_connect_child_posts($post_id,$form_data) {
if ($form_data['id']==129) {
toolset_connect_posts('dom-otzyvy',$_POST['@dom-otzyvy.parent'], $post_id);
}
}
I've removed the parent field from your Toolset form and replaced it with Generic hidden filed which holds the parent post ID as default value where the review form is display currently, as given under:
I shared the hook solution because I thought you want to use post relationship API hook to connect the post automatically (even I confirm this before but may be we do not understand eachother).