Prefill Post Relation

  • Solved
  • Posted 2 months ago

Hey guys,

I have two CPTs that talk to each other “Lookouts” and “Trip Reports”. Trip reports allows users to submit a report of the lookout they visited.

So as it stands: User visits lookout page > Clicks on Submit Trip Report > They select the lookout using the Post Relation input on the form.

I’m wondeirng if it’s possible to change the link (/submit-trip-report/lookout_ID=”@post ID) or something like that, that would prefill that input instead of them havig to search through the form…

Just wondering, if it’s not possible its not a big deal, but it would be handy for other things such as reporting a post or user..