Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

RSForm!Pro - Autopopulate a field from Community Builder

Autopopulate a field from Community Builder

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.

Feedback