Thanks for the reply.
I know this. The form is on a specific page. Not embed inside the post.
On the post I have a button “apply now” and this button redirects you to the page /contact . There is the form. I can edit the link to get the post id /contact/?post_id=4717 where 4717 is the post id where i came from.
If you can send the query string parameter post_id with the ID of the post, you can dynamically populate fields in the form with information from that post. You will need to use a WordPress function to get the post data.
Then, once you have the pieces of data you need from the post, you can populate fields in your form using the gform_field_value filter:
If you have any other questions, please let us know.