Skip to main content

previousAction()

Last updated 20/01/2025

Example One

The following code returns to the previously selected action.

Returns to the previously selected action
function PreviousAction(five: Five, context: any, result: FiveError) : FiveError {
five.previousAction();
return five.success(result);
}

Example Two

The following code returns to the third previously selected action using the optional

num
parameter.

Returns to the third previously selected action
function PreviousAction(five: Five, context: any, result: FiveError) : FiveError {
five.previousAction(true, 3);
return five.success(result);
}

Example Three

The following code returns to the previously replaced action on a dashboard by passing in

false
to the
revertSelect
parameter.

Returns to the previously replaced action on a dashboard
function PreviousActionWithRevertFalse(five: Five, context: any, result: FiveError) : FiveError {
five.previousAction(false);
return five.success(result);
}