Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: TypeError: window[feedback] is undefined; can't access its "call" property

lhertzler free asked 6 years ago


Getting error: "TypeError: window[feedback] is undefined; can't access its "call" property"

When using the add-on stepper.  I'm able to get this add-on to work in a vanilla build, but within a WordPress theme I'm experiencing issues.  Seems all functions work except validation which returns error.


Bartłomiej Malanowski staff commented 6 years ago

How can we recreate this issue?


lhertzler free commented 6 years ago

1. Config vanilla WP install on local server
2. Download, install, and activate this theme (modded 2017 theme with MDB files): http://lukehertzler.com/wp-content/uploads/2018/11/twentyseventeen-mdb-stepper.zip
3. Only WordPress DB change is to set homepage to 'Sample Page' (Settings > Reading)

Then view homepage and enter an email for email input field and click continue.  Check console.



Okay, I've found a solution for you. The `data-feedback` attribute refers to the function which will be fired after you click on the button. In your case the function is `someFunction21()` and it's missing in your code. Simply add the following code to fix it: 

function someFunction21() {
  setTimeout(function () {
    $('#horizontal-stepper').nextStep();
  }, 2000);
}

I've noticed that this wasn't mentioned in our Stepper Docs. This issue is already addressed to the right person so it will be fixed ASAP



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: Computer
  • Browser: MDB Pro
  • OS: Mac OS El Capitan
  • Provided sample code: No
  • Provided link: No