prepopulate a form with CB profile
Hi,
here what I did to prepopulate address with CB profile address info, also I add possibilitie to user to add a different address.
Using Fabrik v1.0.6
Create a set of elements equating to the CB address data you want.
The defaults it installs with are address, city, state, zip, etc.
Give 'em a prefix like cb_city, just to distinguish them from the editable set. Make the cb_ elements Read Only.
Select Eval
here is the complete thread :
http://fabrikar.com/forums/showthread.php?t=7720
*Rob maybe you should add this to FAQ
regards,
Hi,
here what I did to prepopulate address with CB profile address info, also I add possibilitie to user to add a different address.
Using Fabrik v1.0.6
Create a set of elements equating to the CB address data you want.
The defaults it installs with are address, city, state, zip, etc.
Give 'em a prefix like cb_city, just to distinguish them from the editable set. Make the cb_ elements Read Only.
Select Eval
Code:
global $database, $my;
$database->setQuery("SELECT city FROM jos_comprofiler WHERE user_id = '" . $my->id . "'");
return $database->loadResult();
http://fabrikar.com/forums/showthread.php?t=7720
*Rob maybe you should add this to FAQ
regards,