Can I use <?php get_post_custom_values($key); ?> to populate a (hidden) form field in Mautic

I want to make use of the same form on different pages of my website, but send a slightly different email depending on the page where the form was submitted. Therefore I want to populate a Mautic form field with a specific custom field value that I have on each page of my Wordpress website.



How do I do this? Or is there another way to achieve the same goal?



And perhaps more simple: how do I get the URL of the page on which the form was submitted into a form field?


I want to make use of the same form on different pages of my website, but send a slightly different email depending on the page where the form was submitted. Therefore I want to populate a Mautic form field with a specific custom field value that I have on each page of my Wordpress website.

How do I do this? Or is there another way to achieve the same goal?

And perhaps more simple: how do I get the URL of the page on which the form was submitted into a form field?