[object Object] Error in Internet Explorer 11
Hello,
I have created a Formula Rich Text button that checks a box and reloads the page. The function works flawlessly in Chrome and Edge, but when using Internet Explorer 11 I get a blank page with "[object Object]". If I navigate away from this page I can see that the API call has gone through and the box is indeed checked.
After digging around on the internet I thought it was the "location.reload();" javascript function. However, I dug into the Magic Buttons app, and the buttons that use "location.reload();" in there and they seem to work fine refreshing the page in IE 11.
Does anyone know of any other issues that could cause this, or alternate methods of accomplishing this task which would me more robust across different browsers?
Thank you!
var text target = "'blank'";
var text class = "'Vibrant Danger'";
var text style = "'width:100px; text-align: center;'";
var text URL = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&key=" & [SCHEDULE NUMBER] & "&_fid_465=1";
If(
[HAS MDL]=false,
"<a " &
" class=" & $class &
" style=" & $style &
"href=" & "javascript:$.get('" & $URL & "',function(){location.reload();}); void(0);>Create MDL</a>"
)
------------------------------
Peter Rebholz
------------------------------