<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial">Thanks for the suggestion. Yes, it
is &$form. As I stated below, I'm already modifying other forms in
the same function, and they are working fine.<br>
<br>
Steve<br>
</font></font><br>
Jamie Holly wrote:
<blockquote cite="mid:4A38D820.7010903@earthlink.net" type="cite">Are
you sure you have &$form and not just $form in your function
declaration? I've had the same problem before and pulled my hair out
just to realize I forgot the &.
<br>
<br>
Jamie Holly
<br>
<br>
<br>
<br>
<br>
Steve Edwards wrote:
<br>
<blockquote type="cite">I'm trying to use hook_form_alter() to write
data to a text field when the form is first displayed, but for some
reason I can't get the values to display on the form itself. I know I
have the right form_id, because dsm() displays all the data for that
form. What's even weirder is that I can see the data being changed in
the form itself, but it just won't change on the screen. I can also
change the weight of the field
($form['field_class_name']['#weight']=99;)
<br>
and it relocates the position of the field on the screen accordingly.
But when, for instance, I change the #title and #description of the
field, the changes are changed in the arrary itself (I can see this by
putting a dsm() after changing the data), but the values on the screen
don't change. I'm making similar changes to other forms within the
same hook function (different case statements), and they all work
fine. I've cleared all my caches (Drupal and browser), but to no
avail. Can anyone tell me why my form data isn't changing?
<br>
<br>
Thanks.
<br>
<br>
Steve
<br>
------------------------------------------------------------------------
<br>
<br>
--
<br>
[ Drupal support list | <a class="moz-txt-link-freetext" href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]
<br>
</blockquote>
--
<br>
[ Drupal support list | <a class="moz-txt-link-freetext" href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]
<br>
<br>
</blockquote>
</body>
</html>