Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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?