does clickNextButton() work? | XM Community
Skip to main content
Answer

does clickNextButton() work?

  • June 15, 2018
  • 1 reply
  • 62 views

Forum|alt.badge.img+1
I embedded below code in Javascript section but gets JS error. var that = this; (function(){that.clickNextButton();}).delay(1); error from console: Uncaught TypeError: that.clickNextButton is not a function at Function.eval (eval at <anonymous> (vendor.e2b66d0f33fd054a16d6.js:1), <anonymous>:14:22) at jsApi.6dbbb6a4606f2a3bb38e.js:1

Best answer by Sandy

Never mind, I got that resolved. this.hideNextButton(); var that = this; variable "that" should be initialized when hideNextButton() is called.

1 reply

Forum|alt.badge.img+1
  • Author
  • Answer
  • June 15, 2018
Never mind, I got that resolved. this.hideNextButton(); var that = this; variable "that" should be initialized when hideNextButton() is called.