Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Automatically reload/refresh the page including value on the variables

Al-JhonV
Kilo Sage

Hello all,

i experienced a strange issue in technical view where i completed the order of RITM and use the back button in browser to submit a new request using the same catalog item.
For example:
I am requesting to retire this pc:

Aljhon_0-1713930188010.png


after ordering i will click the back button on the browser to submit a new request:

Aljhon_2-1713930297413.png

 

and there are still value on the variables which is not correct because the PC variable is not visible even though the type of device has a value:

Aljhon_3-1713930333891.png

How to reload or refresh the page and clear all value? I tried using onLoad script but it is not working.
This case is not happening in SP view.
When i click go back button of the browser in ServicePortal view, all variables are have no any value and this is what i want to achieve in technival view.

Any ideas?

 

7 REPLIES 7

sujitha16
Kilo Patron

@Al-JhonV Please refer the below links,

 

https://www.servicenow.com/community/developer-forum/how-to-clear-session-data-after-submit-catalog-...

 

https://docs.servicenow.com/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_referenc...

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

swathisarang98
Giga Sage

Hi @Al-JhonV ,

 

Found this servicenow article which might help you have a look,

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0960173 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Hello @swathisarang98 , is there any other way to resolve this? We don't want to modify/add customize scripts.