Hi Bob,
When loading the form, I would like to populate a dropdown with predfined values - from a list of variables rather than from a database table.
This seems to be very basic, but I can't find a solution for this.
When I put in the dropdown General/Options:
0=$form->data['Opt1']
1=$form->data['Opt2']
and in custom code before rendering the form:
$form->data['Opt1']='O1';
$form->data['Opt2']='O2';
the dropdown displays $form->data['Opt1'] instead of the value.
Could you please give me a hint?
Thanks in advance
ivo
When loading the form, I would like to populate a dropdown with predfined values - from a list of variables rather than from a database table.
This seems to be very basic, but I can't find a solution for this.
When I put in the dropdown General/Options:
0=$form->data['Opt1']
1=$form->data['Opt2']
and in custom code before rendering the form:
$form->data['Opt1']='O1';
$form->data['Opt2']='O2';
the dropdown displays $form->data['Opt1'] instead of the value.
Could you please give me a hint?
Thanks in advance
ivo