Open
Reported for: Toolset Forms 2.2.1
When you have a Post Form which allows adding related posts in a one-to-one or one-to-many relationship, the validation of the field for selecting a related post is not working.
This happens because the cred_form_validation hook that is required for validation to work will feature an empty value for that form field. This makes validation impossible.
The current workaround is to validate the field with data in the superglobal $_POST and not thru the $fields variable that Toolset Forms plugin provides in the cred_form_validate hook.
The following is an example of such field in the $_POST if you have a one-to-many relationship between Pages and Posts:
$_POST['@page-post-many_parent']
This will return the value of the field and can, therefore, be validated.