title: Getting the page <title> with RS Form Pro - Joomla
body: <p>I'm trying to get the page title inside my form so i can know from witch page the form was submitted. </p>
  
  <p>I have seen RS Form's tutorial here -> <a href="http://www.rsjoomla.com/support/documentation/view-article/369-get-the-page-title.html" rel="nofollow">http://www.rsjoomla.com/support/documentation/view-article/369-get-the-page-title.html</a></p>
  
  <p>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:</p>
  
  <pre><code>&lt;?php 
  $doc = JFactory::getDocument();
  return $doc-&gt;getTitle();
  ?&gt;
  </code></pre>
  
  <p>Afterwards, i added the hidden field to the form layout and useradmin by the quick toggle of RS Form Options.</p>
  
  <p>What i get in the email received is only this: getTitle(); ?> and not the true pagetitle.</p>
  
  <p>Have i gone wrong somewhere? and if so - where?  maybe there is another way to do that?</p>