Hi I have form element as follows:
<?php $form['name'] = array( '#type' => 'textfield', '#title' => $title, '#default_value' => $name, '#size' => 40, ); drupal_set_message($form['name']['#default_value' ]); ?>
I change $name and $title variable with ajax callback. Title changes correctly. drupal_set_message also returns changed default value correctly but I still can see the original value in the form.
Can anybody help?