Hi,
Thank you for contacting us and I'd be happy to assist.
What you're trying to achieve is possible and you're thinking along the right lines.
1. You'll create two separate pages, one for each review post form:
a). Rate Property
test.site.whatever/rate-property
b). Rate Landlord
test.site.whatever/rate-landlord
2. The parent relationship field in those forms, will be set to link to a URL parameter to read the parent post's ID.
For example, for the rate property form:
test.site.whatever/rate-property/?target-property-id=1234
And for the rate landlord form:
test.site.whatever/rate-landlord/?target-landlord-id=1234
3. The first "Review" link on the single property page will simply need the [wpv-post-id] shortcode, to pass the current property post's ID:
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-id )
test.site.whatever/rate-property/?target-property-id=[wpv-post-id]
4. For the next step of redirecting to the second page "Rate Landlord", you'll use the "cred_success_redirect" filter:
( ref: https://toolset.com/documentation/programmer-reference/cred-api/#cred_success_redirect )
In this filter's function, you can get the ID of the target "property" post through the URL parameter "target-property-id" by using the super global '$_GET' ( $_GET['target-property-id']" ).
( ref: hidden link )
And once you have the ID of the property, you can get the ID of its parent "landlord" post, by using the "toolset_get_related_posts" function:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts
That ID of the related parent landlord post can then be set in the final redirect URL so that on submission of the first form, the user is redirected to the second form page, with the correct URL parameter value of the landlord.
I hope this helps and please let me know if you need any further assistance with this.
regards,
Waqar