This thread is resolved. Here is a description of the problem and solution.
Problem:
A form to publish child posts is included directly in the template for the parent posts (not linked to separately). How to automatically set the parent in the relationship field?
Solution:
You can provide a default value when inserting/editing the relationship field, and use the shortcode wpv-post-id for the value, which will insert the id of the post where the form is shown (i.e. the parent post).
This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
But with the latest update, I no longer see the fields in the insert options to do this?
I've created a form, and added it to my parent post type page, so that they can submit a booking on the page, but when I try and link the two, I do not find any trace of a link to be created, no parent post ID to insert, no relationship value to link to nothing...
After the last updates, how can I go about doing this now?
If it is not clear from that link, the parent can be preselected when you link to the child post form from the template to display parent posts.
In the example in the documentation, venue is a parent post type, event is a child post type.
The form to publish child events includes the parent selector field and is inserted on some page.
The template to display venues includes a button to add an event (publish a child post), which is a link to the page where the child post form is shown.
You insert that link using the Toolset Forms button (screenshot), and the link that is generated will add a URL parameter that specifies the parent post that is passed to the page with the child form which the child form uses to pre-select the parent.
The link option will not work though, We have a custom post type page, which is built in beaver themer, in that page, there is 2 related forms, the booking and reviews, both needs to be submitted without browsing to a sepeate page, so the link option does not work...
How can I set the values for those two when the page which is open? So in other words, the page they're on, is the parent post...
In that case if you want to include the form to publish a child post directly on the parent post then when inserting the parent selector field in the form you can provide the default value with the wpv-post-id shortcode (which will output the post id of the post where the form is displayed, i.e. the parent post in this case).
With the new editor if you want to make any kind of customisation—including modifying classes that are added to the wrapper div around a field and its label—then you need to switch mode, to the "expert" mode.
It is called expert mode, but is the same editor that existing in previous versions of Forms.