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 give info message After or before reload the page in service portal.

Uma2
Tera Expert

Hi Team,

 After update the record i want to give info message and i want to reload the page.

Client script:-


c.save = function()
{
c.data.action = "save";
c.server.update();

window.location.reload();
// c.location.href=c.data.link;
}
spUtil.recordWatch($scope, "sc_req_item", "", function(event,data) {
spUtil.update($scope);
spUtil.addInfoMessage("Record is updated")
});

It's not working.

Can anyone help me to give info message.

 

 

Thanks,

Uma.

1 REPLY 1

Priyanka Vasant
Tera Guru

Hi uma,

Find the below thread which is similar to your requirement.

https://community.servicenow.com/community?id=community_question&sys_id=6ec48be9dbd8dbc01dcaf3231f96...

 

Mark helpful or correct based on impact.

Regards,

Priyanka