We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to auto relaod page after updating through server script in portal?

Rosy14
Kilo Sage
 
1 ACCEPTED SOLUTION

Not applicable

Hi @Rosy14,

you can make a flag in the server script for page reload
for example in server script add "data.refresh = true" where your condition is met to reload the page 

 

In client script add this line to refresh the browser after if sees the flag

if(c.data.refresh == true){
location.reload();
}

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Varun

View solution in original post

2 REPLIES 2

Not applicable

Hi @Rosy14,

you can make a flag in the server script for page reload
for example in server script add "data.refresh = true" where your condition is met to reload the page 

 

In client script add this line to refresh the browser after if sees the flag

if(c.data.refresh == true){
location.reload();
}

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Varun

Hi,

its showing a grayed out page.

Rosy14_0-1711447434710.png

record is updated but page is showing like that.. any idea?