Forums

How to show which user filled out chronoform form ?

tsev 02 Apr, 2010
First of all I want to apologize if I am not posting my question in the right category. Im new user of chronoforms and I am very happy with it, i managed to install everything and publish my forms as well as translate everything.
However I have one question. I made an order form using chronoforms and to access that form, joomla users first have to register and log in. Is there any way to show in chronoforms email results which user filled out the form
GreyHead 02 Apr, 2010
Hi tsev,

Yes you can add the user id (or any other info). In the OnSubmit Before code box put this
<?php
$user =& JFactory::getUser();
// use just the lines you need
JRequest::setVar('user_id', $user->id);
JRequest::setVar('user_email', $user->email);
JRequest::setVar('user_name', $user->name);
JRequest::setVar('user_username', $user->username);
?>
You can then use {user_id}, {user_name}, etc in the Email template.

Bob
tsev 02 Apr, 2010
Thanks you for the working answer..
This topic is locked and no more replies can be posted.