Solved

Call Javascript function in included js file

  • 12 March 2018
  • 1 reply
  • 70 views

Badge +4

I have included a js file, and trying to call the function inside the js file but nothing happened, am i wrong syntax? thanks.

 

213790_pastedImage_1.png

 

213791_pastedImage_2.png

icon

Best answer by jpmhuls 12 March 2018, 11:59

View original

1 reply

Userlevel 2
Badge +11

Hi Joe Lau‌,

To be sure that your called method works, the control it tries to access needs to be available in the DOM. As such you should call your function AFTER the Nintex Form has been loaded/rendered in the browser using the following snippet:

NWF$(document).ready(function(){

     abc();

});

Reply