cancel
Showing results for 
Search instead for 
Did you mean: 
Automation Master
Automation Master

JavaScript in Nintex Forms for O365 not working?

Jump to solution

Hi!

Is it only me facing that issue, or is it that I am doing something wrong (but what? ), 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  This is of course in standard form

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

Regards,

Tomasz

Labels: (1)
Reply
2 Replies
sakhatri
Nintex Newbie

Re: JavaScript in Nintex Forms for O365 not working?

Jump to solution

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 .

Reply
Automation Master
Automation Master

Re: JavaScript in Nintex Forms for O365 not working?

Jump to solution

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