S
S
Sergey Khlopov2017-12-12 10:54:36
Drupal
Sergey Khlopov, 2017-12-12 10:54:36

How to get webform values?

Hello, please tell me, I add my handler to the webform, and how can I get the value of the webform fields in the handler now? Just after clicking on the submit button, you need to get some field values

function test_modul_form_webform_client_form_7_alter(&$form, &$form_state) {
  $form['#submit'][] = 'dbsubmit';
}
function dbsubmit() {
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
afi13, 2017-12-12
@Shlop

If it's Drupal 7 then:

function dbsubmit($form, $form_state) {
    $values = $form_state['values']; // Массив значений из формы
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question