Skip to main content
Nintex Community Menu Bar
Question

Console Error from snippet while using Lightning

  • July 11, 2024
  • 1 reply
  • 6 views

Forum|alt.badge.img+9

I have a large Skuid page with several snippets and functions. It works fine when I’m in Classic and/or Preview. But, when I use a Lightning Skuid Page Component I get an error when running a certain snippet. 

It’s saying pageTitle is not defined. I am using the following line of code. Why doesn’t this work in Lightning and how can I get it to work in Lightning?

pageTitle = $(‘#cart’);

 

I have a Page Title component with an id of ‘cart’. I’m using the snippet to handleMessages() after running some functions over a few different models. 

1 reply

Forum|alt.badge.img+9
  • Author
  • July 11, 2024

Figured out the problem. I believe this is because js is in Strict mode according to documentation. I had to change my js code to adhere to strict mode. Everything worked correctly once I did that.