KennyJ
Canvas Initiate

Javascript not running on Microsoft Edge

Jump to solution

Hi,

 

I have the below custom Javascript code which sets a fields value in my Nintex form.  This works fine with Internet Explorer 11, but it does not run with Microsoft Edge.  Do you know why this might be?

 

var dateNow = document.getElementById(varReferenceNumber);
dateNow.innerText = Date.now();
console.log(dateNow);

 

Thank you.

Kenny

0 Kudos
Reply
2 Replies
SimonMuntz
Nintex Employee
Nintex Employee

Re: Javascript not running on Microsoft Edge

Jump to solution

Hi,
Yes I found that the code does not work in Edge but works in IE.
I found that this code works in both.

NWF$(document).ready(function () {
NWF$('#'+ varReferenceNumber).val(Date.now());  
});

 

View solution in original post

Reply
KennyJ
Canvas Initiate

Re: Javascript not running on Microsoft Edge

Jump to solution

Thanks, that works perfectly!

0 Kudos
Reply