Skip to main content
Nintex Community Menu Bar

Javascript not running on Microsoft Edge

  • October 14, 2019
  • 2 replies
  • 41 views

Forum|alt.badge.img+1

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

2 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 15, 2019

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());  
});

 


Forum|alt.badge.img+1
  • Author
  • October 16, 2019

Thanks, that works perfectly!