The CreatorCon Call for Content is officially open! Get started here.

Automatically reload/refresh the page including value on the variables

Al-jhon
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

Sujatha V M
Kilo Patron
Kilo Patron

@Al-jhon 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-jhon ,

 

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.