Scenario:
I have an event Grid form layout with a grid on it, like so:
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
The previous code for the link is saving null into the variable that's showing/hiding the grid, so your cancel button may be altered to be: a!buttonWidget( label: "Cancel", value: null, saveInto: a!save(local!selectedEventId, null), style: "DESTRUCTIVE" )