<@U5H9HECTS> window.NS.form.isChanged = function()...
# suitescript
m
@screnshaw window.NS.form.isChanged = function() { return false; };
s
You are awesome! Is that in their documentation or just a hack picked up/created along the way?
c
you just override the default to be nothing since javascript only looks at the last implementation of a function.
its not a "hack" but its just taking advantage of how the language works
s
True. I just meant that it's not a standard netsuite call.
s
By doing so wudn't it affect other script onchange?
m
Other client onChange events are triggered when fields themselves change. This function is only called as the page is unloading. As soon as it reloads the function will be redefined.
i
It's possible also to change the window state to prevent this message from being shown.