php - Get the value of a field in a Webform in Drupal 7 -


i created form "webform" module. in form have 1 field of e-mail type. question is: how can value of field when user submits form?

i guess should use hook_form_form_id_alter?

yes, should use hook_form_form_id_alter() (or hook_form_alter(), if prefer).

when have $form argument these hooks, should set array value of $form['#submit'] name of function in catch needed values.

example:

$form['#submit'] = array('node_form_function_submit'); 

[...]

function node_form_function_submit($form, $form_state) {     $form_state['values']; // submitted form values } 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -