Forum Discussion

rupali_sonawane's avatar
rupali_sonawane
New Contributor
2 years ago

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

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    By the looks of it, your function is called OkCancelDialog_ClickOk() which is different to OkDialog.clickOk() ğŸ¤”

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