Hi mpadros,
I'm a little bit lost with this code you provided me with:
First I have to say that my form is in
Quick Mode and I don't know if the code you provided me with is for Quick Mode or another mode.
Here's what I have:
| Code: |
// load the standard form creation utilities
$this->execPieceByName('ff_InitLib');
//set globals
global $record;
//set value of id
$rid = ff_getParam('ff_param_rid');
//load existing data
global $record;
//check id has value
if($rid){
//query db
$rows = ff_select("select `title` from `#__categories` where published=1");
$categorie="1;Veuillez choisir une;\n";
//set text,checked and selected
if (Count($rows))
{
foreach($rows as $record)
{
$categorie.="0;$record->title; $record->title\n";
}
}
}
|
I have kept this piece of code but I don't know what he's need for:
| Code: |
//set value of id
$rid = ff_getParam('ff_param_rid');
|
When I do that it does not populate my "select list" called categorie.
In your example you have:
ff_setSelected for radio
ff_setChecked for checked
and
ff_setValue, is this for select-list?
How should I populate my select list categorie?
Thank you very much for your help.