Stack based form automatically take pageID / title

Permalink
I've created a form as part of a stack that will then appear on multiple pages – in this case product detail pages which are part of the ecommerce package.

The complicated thing is that I want the form results to automatically populate with information about which page they have been sent from – i.e to include some details of the product in question.

So, for example, when the form automatically sends an email to site admin, saying "Form submission" … I'd like it to say "Form submission about pageTitle".

I've found the line in the controller file that controls this but not really sure what to change…

Many thanks for any help

olay