Closed (fixed)
Project:
Webform
Version:
7.x-4.17
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
29 Apr 2015 at 14:14 UTC
Updated:
8 Jan 2019 at 22:23 UTC
Jump to comment: Most recent
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
Comment #1
danchadwick commentedUpgrade to the latest 7.x-4.x-dev and I'm sure the problem will be fixed.
Comment #3
r3m commentedI 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
Comment #4
r3m commentedAnd I have this error on every website uppdated
Comment #5
berenddeboer commentedSeeing this error too. Started to surface when I added:
to my form_alter hook. Not sure I need that as I'm debugging an issue.
Comment #6
hassan.farooq121 commentedI am getting same error on a webform.
Version: 7.x-4.17
Comment #7
hassan.farooq121 commentedComment #8
hassan.farooq121 commentedComment #9
danchadwick commenteda) 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.