This is one way to do it....
Before Form Piece:
// Get the lead info for the current user
$this->execPieceByName('ff_InitLib');
global $database, $record, $my;
$id = $my->email;
$database->setQuery("
SELECT *
FROM jos_[your table]
WHERE email = '$id'"
);
$row = $database->loadObjectList();
$record = $row[0];
Form Values:
Name:(This gets the Data from Joomla)
<?php $user = &JFactory::getUser();return $user->name;?>
Email:(This gets data from Joomla)
<?php $user = &JFactory::getUser();return $user->email;?>
Home Phone:
<?php global $record; return $record->hphone; ?>
Mobile Phone:(This gets data from your table)
<?php global $record; return $record->mobile; ?>
Today’s Date:(This is just a PHP script to get the date)
<?php return date("m/d/Y") ?>
This is assuming you have a table that contains the data you want to use to fill in the values and that one of the fields in that table has the 'email' value in common with your Joomla user database.
There are other ways to do it, but this one works pretty well. Please let me know if you have any questions. This forum is all about helping each other.