clean-messages trigger action

Overview

Use the clean message action in a workflow trigger to remove all custom on-screen workflow message notifications and tidy up your page for visitors. It can be useful after multiple reviewer actions when you move to the next stage in your process or when moving your workflow to the final published state.

When the workflow trigger event occurs, it checks that any required conditions are met, and if they are, the "clean-messages" action removes all set messages.

One or more trigger actions can be set for a named event in the workflow.

"clean-messages"

The "clean-messages" action removes all messages (set by a “set-message" trigger action) on the content.

  • action (clean-messages

Example trigger code

"triggers": [ {"event": "on-change-state", "conditions": [ {"final":true} ], "actions": [ {"action": "clean-messages"} ]} ]

When adding the JSON trigger using the workflow builder visual editor, there is no need to include the opening "triggers": JSON markup notation; it is added automatically by the workflow builder.

 A message can be set using the "set-message" trigger action.

 

Related Pages