I used the form_alter function to change the value of a component, but it does not change, and the default values ββare stored in db. when i print $ form updated values ββare displayed but not saved in db.
<?php function pahcom_form_edit_module_form_alter(&$form, &$form_state, $form_id) { if($form_id =='webform_client_form_54') { $new_value = rand(100000,10000000); $form['#node']->{'webform'}['components']['12']['value']=$new_value; } } ?>
source share