Answer the question
In order to leave comments, you need to log in
How to understand which module is responsible for the current webform?
I'm trying to insert a metric on drupal.
I looked at how others did it, and it worked.
This piece works and inserts data.
function name_form_webform_client_form_2_alter(&$form, &$form_state) {
$form['#attributes']['onsubmit'] = "yaCounter1111115.reachGoal('FORM2'); return true;";
$form['actions']['submit']['#attributes']['id'] = "lid1";
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question