Forums

Email record in community builder

capitanonemo 08 Feb, 2010
hi! does anyone know the email record in CB?
capitanonemo 08 Feb, 2010
I made a registration form connected to CB registration form by chrono connectivity.
the problem is that community builder has not any email record (maybe CB takes it from _user table) so the second form I made with chronoforms, send me an email without the email address that user put in the registration form...what can I do?
GreyHead 08 Feb, 2010
Hi capitanonemo,

Get it from the Joomla User object - search here on getuser.

Bob
capitanonemo 08 Feb, 2010
thanx for your answer but how can I put this:
Email: <?php $user = JFactory::getUser(); echo $user->email; ?>
in the email templates of chronoforms?
GreyHead 08 Feb, 2010
Hi capitanonemo,

Add it in the OnSubmit Beofer box and put the result into the form results array with JRequest::setVar('user_email', $user_email); and add {user_email} to the template.

Bob
This topic is locked and no more replies can be posted.