I've created a CPT "Properties"
I have also created a CPT "Information request" with a 1 to many relationship " Property-InfomationRequests".
In the content template to view a property I included a "Information Request" form for the visitors.
I would like the "InformationRequest" form content filled by the visitor to be linked automatically to the property from which I filled in.
How to do that ?
There is a way to add the relationship of the form to a property inside the form design, but it Is asking the visitor to choose. I'd like it to be done automatically without asking the user because then the risk it for him to chose another property...
Well... yes and no...
actually I'm developping a real estate website and on the page of each properties I want to display a simple form where the user will fill his name, phone and email and a message box to ask questions about THIS porperty. and so I need the connection between the form content and ThIS property.
The form is inside the content template for my properties. I don't want to go to another page to fill the form.
What I see in the form is the possibility for the user to choose any property to "link it" but I don't want him to choose because he is filling it on the property page.