# Client event go back to previous

**URL:** <https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [April 28, 2023, 1:32pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021 "2023-04-28T13:32:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Cockrell](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Brian\_Cockrell](https://forum.inductiveautomation.com/u/Brian_Cockrell)\
**Post date:** [April 28, 2023, 1:32pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/1 "2023-04-28T13:32:15Z")

</div>

I am trying to use the escape button on client event to go back to the previous page.

I have the escape button scripted in the client events that has system.nav.goback().

This doesnt seem to work. Is there another way to do this?

Thank you

---

<div class="post-metadata">

**Author:** ![Joe\_Seph](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe_seph/32/40277_2.png) [@Joe\_Seph](https://forum.inductiveautomation.com/u/Joe_Seph)\
**Post date:** [May 10, 2023, 9:39pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/2 "2023-05-10T21:39:21Z")

</div>

Hi Brian,

To clarify, do you mean the 'esc' button on a keyboard or is this a button on the client window? Could you post the script you have and where it is set up in your project?

---

<div class="post-metadata">

**Author:** ![Brian\_Cockrell](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Brian\_Cockrell](https://forum.inductiveautomation.com/u/Brian_Cockrell)\
**Post date:** [May 11, 2023, 12:31pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/3 "2023-05-11T12:31:14Z")

</div>

Under client events  
Escape (Released)

system.nav.goBack()

---

<div class="post-metadata">

**Author:** ![Brian\_Cockrell](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Brian\_Cockrell](https://forum.inductiveautomation.com/u/Brian_Cockrell)\
**Post date:** [May 11, 2023, 12:31pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/4 "2023-05-11T12:31:35Z")

</div>

Button on keyboard

---

<div class="post-metadata">

**Author:** ![Joe\_Seph](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe_seph/32/40277_2.png) [@Joe\_Seph](https://forum.inductiveautomation.com/u/Joe_Seph)\
**Post date:** [June 20, 2023, 9:30pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/5 "2023-06-20T21:30:55Z")

</div>

Hey Brian,

Have you tried using any other keys besides escape to test this functionality?

---

<div class="post-metadata">

**Author:** ![Brian\_Cockrell](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Brian\_Cockrell](https://forum.inductiveautomation.com/u/Brian_Cockrell)\
**Post date:** [September 18, 2023, 4:58pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/6 "2023-09-18T16:58:15Z")

</div>

Yes i have. Backspace and spacebar. Also just tried B just to make sure.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [September 18, 2023, 5:49pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/7 "2023-09-18T17:49:20Z")

</div>

It seems that this question should have been tagged as "vision" specific. You can edit the title to add the appropriate tag to attract the right experts.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 23, 2023, 3:07am UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/8 "2023-09-23T03:07:34Z")

</div>

I use the key released event handler to close popups with the escape key, and I've never had a problem, but I don't use [system.nav.goback()](https://docs.inductiveautomation.com/display/DOC81/system.nav.goBack) for backwards navigation. It seems like I tried this some time ago and didn't get the results I wanted.

In any case, I just set up an experiment, and no matter where I navigate, I get this in my diagnostic console whenever I call system.nav.goback from the escape key:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/96c20cd7e823b2234b63da1f5a1f20ef46f5e574.png)

Nevertheless, I do have a strategy in place for reverse navigation that works quite well. I use templatized navigation buttons that simply add the windows they call to a dataset client tag. Then a back button can retrieve the previous window from the dataset and open it. Furthermore, this allows the client can access the full session history in a power table and navigate directly to any previous window with a mouse click.

---

<div class="post-metadata">

**Author:** ![Brian\_Cockrell](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Brian\_Cockrell](https://forum.inductiveautomation.com/u/Brian_Cockrell)\
**Post date:** [January 22, 2024, 8:40pm UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/9 "2024-01-22T20:40:04Z")

</div>

Sorry for the late response. I was shifted to another project for a while but am back on ignition.

Can you provide an example. I move multiple parameters between windows.

Thanks

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [January 23, 2024, 6:29am UTC](https://forum.inductiveautomation.com/t/client-event-go-back-to-previous/73021/10 "2024-01-23T06:29:43Z")

</div>

> [@Brian\_Cockrell](#):
>
> I move multiple parameters between windows.

Well, that certainly complicates things. All I do is use a client dataset memory tag, and I use templatized navigation buttons that add the window path to the dataset to create a history for the client session. The templatized back button navigates that history in reverse. I don't use the history for parameterized windows, but I suppose parameters could be saved along with the window path by simply adding columns to the dataset.
