Populate select list code in BreezingForms won't work! - Joomla! Forum - community, help and support
i'm using exact code snippet (step 1 of simple version) page hosted developers of breezingforms joomla!, modified have correct table , field names, , name of select list in form: http://crosstec.de/media/kunena/attachm ... iptdev.txt
all want in breezingforms populate select list "address" field name , "buildingid" value. don't need scripts in step 2, 3, etc. because don't need populate other form fields. code inserted in advanced > form options > form pieces > before form box, select list fails show on page form, see here: http://catondesigngroup.com/websites/jo ... /form.html
the form field label "select list" there, select list box fails appear. don't see reason why doesn't work. what's wrong here? please help!
note: omitted these 2 lines of code because don't need usernames or user id's, trying implement these lines of code any:
$user = &jfactory::getuser(); // user via jfactory
$userid = $user->id; // may need use different value or none
=========start code=============
this->execpiecebyname('ff_initlib');
$rows = ff_select("select buildingid, address
ty43k_building_inspection");
$listdata = "0;please make selection;0\n";
($i = 0; $i < count($rows); $i++) {
$listdata .= "0;{$rows[$i]->address};{$rows[$i]->buildingid}\n";
}
ff_setselectlist('select1', $listdata);
function ff_setselectlist($name, $value) {
global $ff_processor;
($r = 0; $r < $ff_processor->rowcount; $r++) {
$row =& $ff_processor->rows[$r];
if ($row->name==$name)
$row->data2 = $value;
unset($row);
} // for
} // ff_setselectlist
========end code=========
all want in breezingforms populate select list "address" field name , "buildingid" value. don't need scripts in step 2, 3, etc. because don't need populate other form fields. code inserted in advanced > form options > form pieces > before form box, select list fails show on page form, see here: http://catondesigngroup.com/websites/jo ... /form.html
the form field label "select list" there, select list box fails appear. don't see reason why doesn't work. what's wrong here? please help!
note: omitted these 2 lines of code because don't need usernames or user id's, trying implement these lines of code any:
$user = &jfactory::getuser(); // user via jfactory
$userid = $user->id; // may need use different value or none
=========start code=============
this->execpiecebyname('ff_initlib');
$rows = ff_select("select buildingid, address
ty43k_building_inspection");
$listdata = "0;please make selection;0\n";
($i = 0; $i < count($rows); $i++) {
$listdata .= "0;{$rows[$i]->address};{$rows[$i]->buildingid}\n";
}
ff_setselectlist('select1', $listdata);
function ff_setselectlist($name, $value) {
global $ff_processor;
($r = 0; $r < $ff_processor->rowcount; $r++) {
$row =& $ff_processor->rows[$r];
if ($row->name==$name)
$row->data2 = $value;
unset($row);
} // for
} // ff_setselectlist
========end code=========
Comments
Post a Comment