Hello everybody,
I tested a piece of code that should display a table with several rows and extend to another new row when the user fills out the last existing row.
As you can see below, it now it works only for the new generated fields, but not for the table-elements like:
'#prefix' => "<tr><td>$ocalc_zone 1</td><td>",
'#suffix' => "</td>",
Does anybody have a suggestion how to display the additional table-elements in the same way the newly added fields are displayed?
You can see a test page at http://linsenrechner.de/node/27
Just enter something in the two fields. (The button gives an error, ignore that...)
Thanks a lot,
Andreas
Here' the complete code:
$form[$wrapper]['radius0'] = array(
'#type' => 'textfield',
'#title' => $ocalc_radius,
'#title_display' => 'invisible',
'#weight' => -20,
'#prefix' => "
|
$ocalc_radius |
$ocalc_zone |
$ocalc_zone 0 |
",
'#suffix' => " |
",
);
$form[$wrapper]['zone0'] = array(
'#type' => 'textfield',
'#title' => $ocalc_zone,
'#title_display' => 'invisible',
'#weight' => -15,
'#prefix' => "
",
'#suffix' => " |
",
);