Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Rosy14
Kilo Sage
 
1 ACCEPTED SOLUTION

Community Alums
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

Community Alums
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?