var originator_email = document.getElementById("jform_sendto_first_step"); originator_email.value = "<?php echo JFactory::getUser($this->item->created_by)->get('email'); ?>"
This is the error I have. using $this when not in object context bla bla bla. What's proper way of doing this ?
Have tried to include the code:
<?php echo JFactory::getUser($this->item->created_by)->get('email'); ?>
into the page directly and I can see it throw the result to the screen no problems.