To populate a field with a value from Community Builder, you will require a script in the Default Value area, for example:
//<code> $my = & JFactory::getUser(); $db = JFactory::getDBO(); if ($my->get('id')) { $db->setQuery("SELECT `firstname` FROM `#__comprofiler` WHERE `user_id`='".$my->get('id')."' LIMIT 1"); return $db->loadResult(); } //</code>
The above script returns the first name stored in the #__comprofiler table.






