Ask a Question

TypeError: OkDialog.clickOk is not a function

rupali_sonawane
New Contributor

TypeError: OkDialog.clickOk is not a function

Today i got a weird error message as TypeError: OkDialog.clickOk is not a function when execution running.

 

Have anyone got this kind of error. My function looks like below

 

function OkCancelDialog_ClickOk()
{
this.oKButton.ClickButton();
}

 

Scripting Language : JavaScript

@shankar_r 

3 REPLIES 3
rraghvani
Champion Level 2

By the looks of it, your function is called OkCancelDialog_ClickOk() which is different to OkDialog.clickOk() 🤔

rupali_sonawane
New Contributor

it just typo I renamed the object to okButton and  onClick event is expected after clicking  "ClickButton"

rraghvani
Champion Level 2

Have you corrected the "typo", is it now working?

cancel
Showing results for 
Search instead for 
Did you mean: