I am using window.location.replace function. it says
"window" is not defined
what should i do?
n
NElliott
02/28/2023, 3:42 PM
Where are you using it?
NElliott
02/28/2023, 3:44 PM
If it's in a client script on a SuiteLet you should be able to set :
Copy code
document.location.href
v
vennila ramasamy
02/28/2023, 5:15 PM
ok sir, i will try this
vennila ramasamy
03/01/2023, 8:18 AM
if i use, document.location.href, it says document is not defined.
n
NElliott
03/01/2023, 8:31 AM
When you ask for help could you please be clear about the script type and context/entry point.
I've had to guess with your question and could be wrong.
Please add more detail. In general, it's helpful to share your code, not just the line but at least the surrounding code / any variable declarations but preferably the whole script.