Solved

JavaScript in Nintex Forms for O365 not working?

  • 6 October 2017
  • 2 replies
  • 32 views

Userlevel 7
Badge +17

Hi!

 

Is it only me facing that issue, or is it that I am doing something wrong (but what? wink.png), but since yesterday I am simply unable to run custom JS in Nintex Forms for Office 365...

 

Console is claiming that NWF$ is not defined... NWF object is also udnefined. Like no javascript is working sad.png This is of course in standard form happy.png

 

208957_pastedImage_5.png

 

I have tested it on three tenants and faced the same behavior... 

 

 

Regards,

Tomasz

icon

Best answer by sakhatri 6 October 2017, 12:04

View original

2 replies

Badge +6

Hi Tomasz Poszytek‌,

How are you testing your code ?

Are you inserting it inside the custom Form settings >> Custom JavaScript or simply just executing it from the developer console.

This error will usually occur if you directly run the code form the developer tools.

Try inserting the code in the form and then check .

Userlevel 7
Badge +17

You are right... Weird.. But I used to test my scripts before publishing the exact way! 

I know why!

It is because the Nintex Form for Office 365 is opened via the iframe. So if I open the developer console just for the window, it gets the context of the window, not the iframe. BUT if I right-click the form area, and then "Inspect", then developer Console works in the context of the iframe:

Thanks once again. Regards,

Tomasz

Reply