I'm trying to get the page title inside my form so i can know from witch page the form was submitted.
I have seen RS Form's tutorial here -> http://www.rsjoomla.com/support/documentation/view-article/369-get-the-page-title.html
This doesn't seem to work. what i was trying to do is creating a hidden filed and inserting his default value to following code:
<?php
$doc = JFactory::getDocument();
return $doc->getTitle();
?>
Afterwards, i added the hidden field to the form layout and useradmin by the quick toggle of RS Form Options.
What i get in the email received is only this: getTitle(); ?> and not the true pagetitle.
Have i gone wrong somewhere? and if so - where? maybe there is another way to do that?