Is there a way of referring to the ALL of the variables containing the values of the current user's profile into a Fabrik element of the field type?
I wrote a custom user profile that adds entries for Company and Full Name, and I want to pull these values onto a Fabrik form. Sort of performing the same function as an autofill. (The autofill feature seems difficult/impossible to grasp, at least to me...)
I've been able to get SOME of the values by putting, for instance, this into the Options/Eval box:
$user =& JFactory::getUser();
$email = $user->get('email');
return $email;
//that works fine//
$user =& JFactory::getUser();
$username = $user->get('username');
return $username;
//also works fine//
But if I try this, which refers to one of the standard profile items, phone:
$user =& JFactory::getUser();
$phone = $user->get('phone');
return $phone;
It returns nothing. Are not all of the entries in the user's profile contained in the session values? If so, how does one call them?
I wrote a custom user profile that adds entries for Company and Full Name, and I want to pull these values onto a Fabrik form. Sort of performing the same function as an autofill. (The autofill feature seems difficult/impossible to grasp, at least to me...)
I've been able to get SOME of the values by putting, for instance, this into the Options/Eval box:
$user =& JFactory::getUser();
$email = $user->get('email');
return $email;
//that works fine//
$user =& JFactory::getUser();
$username = $user->get('username');
return $username;
//also works fine//
But if I try this, which refers to one of the standard profile items, phone:
$user =& JFactory::getUser();
$phone = $user->get('phone');
return $phone;
It returns nothing. Are not all of the entries in the user's profile contained in the session values? If so, how does one call them?