Hi!
I'm working on a website that works with user registration, this I am doing a couple of contact forms with ChronoForms. I want to make a very simple contact form, which only has the text message field. I want the form get user data directly from the database.
In
ChronoForms documentation
I found information on how to get data from users of Joomla, but not of CB.
Code:
<?php
$user = \JFactory::getUser();
$form -> data['user_id'] = $user -> id;
$form -> data['user_name'] = $user -> name;
$form -> data['user_email'] = $user -> email;
?>
How I can get user data directly from the DB of Community Buider?
Thanks!