does clickNextButton() work? | XM Community
Solved

does clickNextButton() work?

  • 15 June 2018
  • 1 reply
  • 41 views

Badge +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
icon

Best answer by Sandy 15 June 2018, 15:30

View original

1 reply

Badge +1
Never mind, I got that resolved.

this.hideNextButton();
var that = this;

variable "that" should be initialized when hideNextButton() is called.

Leave a Reply