When the systems runs the functionDrupal.webform.conditionalCheck = function(e) {k on js/Webform.js it throws an exception: Uncaught TypeError: Cannot read property 'match' of undefinedhad

Comments

danchadwick’s picture

Category: Bug report » Support request
Status: Active » Fixed

Upgrade to the latest 7.x-4.x-dev and I'm sure the problem will be fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

r3m’s picture

I also have this error :

Uncaught TypeError: Cannot read property 'match' of undefined
at HTMLFormElement.Drupal.webform.conditionalCheck (webform.js?oiy1ze:116)

At line 116 of webform.js, the error point the folling code : var triggerElementKey = $triggerElement.attr('class').match(/webform-component--[^ ]+/)[0];

I have updated to the most recent dev version but the problem persists

Drupal 7.53
Webform 7.x-4.14+18-dev

r3m’s picture

And I have this error on every website uppdated

berenddeboer’s picture

Issue summary: View changes

Seeing this error too. Started to surface when I added:

$form_state['rebuild'] = TRUE;

to my form_alter hook. Not sure I need that as I'm debugging an issue.

hassan.farooq121’s picture

I am getting same error on a webform.
Version: 7.x-4.17

hassan.farooq121’s picture

Priority: Minor » Critical
hassan.farooq121’s picture

Version: 7.x-4.5 » 7.x-4.17
danchadwick’s picture

Priority: Critical » Normal

a) This is a 4 year old issue. Post a new issue. This issue is closed and won't receive further attention.
b) Look at the issue queue priorities. This is not Critical.
c) The problem does not happen to thousands or millions of other webforms. Something is different about your installation. You (or your paid developer) will need to debug more.
d) Looking briefly at the code, I'm wondering if your theme or custom module has removed the webform-component class. Just a guess.