Cancel button to navigate to previous page without process model

Scenario:

I have an event Grid form layout with a grid on it, like so:

link item price details
link item price details

When I select an entry from the grid, I am linked to a details page which shows all the details of the grid entry with some editable fields.

I have a '<-Back to event grid' link which allows me to navigate back to the grid. The code for this is as follows:

 

a!richTextDisplayField(
        labelPosition: "COLLAPSED",
        value: {
          a!richTextItem(
            text: {
              a!richTextIcon(
                icon: "long-arrow-left"
              ),
              " Back to event list"
            },
            link: a!dynamicLink(
              value: null,
              saveInto: local!selectedEventId
            ),            
            linkstyle: "STANDALONE"
          )

Most significantly, I have a CANCEL button, which has the following code:

 

a!buttonWidget(
                  label: "Cancel",
                  value: null,
                  saveInto: {},
                  style: "DESTRUCTIVE"
                ),

At the moment, the CANCEL button does nothing. I'd like it to behave in exactly the same manner as the '<-Back to event grid' link.

 

Does anyone know how I can make the CANCEL button navigate the user back to the event grid, like the '<-Back to event grid' link?

 

Thanks

  Discussion posts and replies are publicly visible