[development] Values not retained
pavithra m
pavspavi88 at gmail.com
Mon Jan 10 06:47:02 UTC 2011
This part of the code is not retaining the previous value.....
$form['characteristics']=array(
'#type' => 'textfield',
'#size'=> 20,
//'#title' => t('rows @n', array('@n' => ($delta + 1))),
'#prefix'=>'<table class="table2"><tr><td class="table2row">',
'#suffix'=>'</td>',
'#default_value' => !empty($form_state['values']['characteristics']) ?
$form_state['values']['characteristics'] : '',
'#parents' => array('rows', $delta, 'chars'),
);
$form['description']=array(
'#type' => 'textfield',
'#size'=> 20,
//'#title' => t('rows @n', array('@n' => ($delta + 1))),
'#prefix'=>'<td class="table2row">',
'#suffix'=>'</td>',
'#default_value' => !empty($form_state['values']['description']) ?
$form_state['values']['description'] : '',
'#parents' => array('rows', $delta, 'descr'),
);
$form['minimum']=array(
'#type' => 'textfield',
'#size'=> 20,
// '#title' => t('rows @n', array('@n' => ($delta + 1))),
'#prefix'=>'<td class="table2row">',
'#suffix'=>'</td>',
'#default_value' => !empty($form_state['values']['minimum']) ?
$form_state['values']['minimum'] : '',
'#parents' => array('rows', $delta, 'min'),
);
$form['maximum']=array(
'#type' => 'textfield',
'#size'=> 20,
//'#title' => t('rows @n', array('@n' => ($delta + 1))),
'#prefix'=>'<td class="table2row">',
'#suffix'=>'</td></tr></table>',
'#default_value' => !empty($form_state['values']['maximum']) ?
$form_state['values']['maximum'] : '',
'#parents' => array('rows', $delta, 'max'),
);
--
*Cheers*
*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110110/bcd5c8dc/attachment.html
More information about the development
mailing list