<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
Yes, I'm using #multistep<br>
<br>
I thought about that, $form been built more than one time. My test
seens to point somewhere else.<br>
<br>
<br>
look at this:<br>
<br>
<br>
// my previous array $report, returned by db_fetch_array<br>
$report['name'] .= ' something'; // I insert 'something' into it<br>
<br>
$form['saveit']['name'] = array(<br>
'#type' => 'textfield',<br>
'#title' => t('Name'),<br>
<b> '#default_value' => $report['name'], <br>
</b><b> '#description' => $report['name'],<br>
</b><b></b><br>
<br>
what should be the result from default_value and description? The
same? No, look:<br>
<br>
<div class="form-item"> <label for="edit-name">Nome: </label> <input
maxlength="50" name="name" id="edit-name" size="30" value=" something"
class="form-text" type="text">
<div class="description">Array
( [name] => test something
)
</div>
</div>
<div class="form-item"> <label for="edit-weight"><br>
</label></div>
<br>
'something' shows on both outputs, but 'test' only in #descrtption. If
is the SAME source ($report['name']), where is 'test' ??? I'm geting
crazy with that :P<br>
<br>
I can provide a demo site if its a good idea.<br>
<br>
<br>
Feijó<br>
<br>
<br>
Tao Starbow escreveu:
<blockquote cite="mid:4798C4FA.7030809@citris-uc.org" type="cite">Probably
means your #value is getting set through some other mechanism. FormAPI
can be pretty subtle at times. I seem to remember having a similar
problem when I was playing around with #multistep, but I don't remember
how I fixed it.
<br>
<br>
good luck,
<br>
-tao
<br>
<br>
</blockquote>
</body>
</html>