I was able to get the custom fields this way. Posting for any other Joomla noobies to use. Note, the "#" in the database table name is where your database prefix would be. I'm commenting out for security reasons. Some new to development may not know this.
class PlgUserWebtocase_registrant extends JPlugin
{
public function onUserAfterSave($user, $isnew)
{
if ($isnew) {
$newUser = 1;
$userID = $user['id'];
$userEmail = $user['email'];
$userFirstLastName = $user['name'];
$userRegisterDate = $user['registerDate'];
$username = $user['username'];
$userProfile = JUserHelper::getProfile( $userID );
$address1 = $userProfile->profile['address1'];
$city = $userProfile->profile['city'];
$region = $userProfile->profile['region'];
$postal_code = $userProfile->profile['postal_code'];
$phone = $userProfile->profile['phone'];
if($address1 && $postal_code) {
$address=$address1.", ".$city.", ".$region." ".$postal_code;
/*** GET CUSTOM FEILD VALUES ***/
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query
->select($db->quoteName(array('field_id', 'item_id', 'value')))
->from($db->quoteName('#_fields_values'))
->where($db->quoteName('item_id') . ' LIKE '. $db->quote($userID))
->order('field_id ASC');
// Reset the query using our newly populated query object.
$db->setQuery($query);
// Load the results as a list of stdClass objects
$results = $db->loadObjectList();
// create an array of each custom field with the field ID value and value of the value column
$fieldArray = array ($results[0]->field_id => $results[0]->value, $results[1]->field_id => $results[1]->value, $results[2]->field_id => $results[2]->value, $results[3]->field_id => $results[3]->value, $results[4]->field_id => $results[4]->value, $results[5]->field_id => $results[5]->value, $results[6]->field_id => $results[6]->value, $results[7]->field_id => $results[7]->value);
$license_number = $fieldArray['1']; // lic#
$practice_name = $fieldArray['2']; // ClinicBiz name
$profession_title = $fieldArray['3']; // Title
$profession = $fieldArray['4']; // Profession
$institution_attended = $fieldArray['5']; // Institutution
$graduation_year = $fieldArray['6']; // Grad date
$subscrb_email = $fieldArray['7']; // subscr email
$subscrb_mail = $fieldArray['8']; // subscribe mail
/*** END Get Custom Field Values ***/
/*** Perform cURL operation to CRM ***/
/*** END cURL ***/
}
}
}