I am using the webform module for Drupal 6 and would like to set a default value for the confirmation message of the webform whenever it is created. Would I have to create my own module to set this form value whenever a user creates a new webform? Or would I have to implement a special hook to look for when a webform is created?
A:
You going to want to use the following:
customMod_form_alter(&$form, $form_state, $form_id){
if($form_id == 'webform_node_form'){
$form['id_of_conf_message_field']['#default_value'] = 'BLAH BLAH'
}
}
Erik Ahlswede
2010-03-14 02:37:14
This is what I ended up doing, custom module and hook_form_alter... Thanks!
JR
2010-03-17 20:12:28