Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Excerpt
hiddentrue

How to change captions of the Approve and Reject buttons created by the

{

approval

}

macro.

This example shows how to change the captions of the

"

Approve

"

and

"

Reject

"

buttons shown during a content review.

Default

Captions

captions for approval action labels

When a content review is created using the 

{approval} macro

approval macro, buttons labeled

"

Approve

"

and

"

Reject

"

are added to the 

Workflow PopupNote:

The approval buttons are only added if their target states are defined in the parent 

{state} macro

state macro via the approved and rejected parameters.

Code Block
languagetext
themeRDark
{workflow:name=Customise Approval Buttons}
   {state:Review|approved=Review|rejected=Review}
      {approval:Default Captions}
   {state}
{workflow}

Image Removed

Custom Captions

These default button action labels can be edited in the workflow builder for each approval.

Default approval custom action labels in workflow builderImage Added
Default approval action labels in the workflow popupImage Added

Custom captions for approval action labels

To change the button captions, use the approvelabel and rejectlabel parameters on the 

{

approval

}

 macro as shown below:

Code Block
languagetextthemeRDark
{workflow:name=Customise Approval Buttons}
   {state:Review|approved=Review|rejected=Review}
      {approval:Custom Captions|approvelabel=YesGreat to go!|rejectlabel=No good!}
   {state}
{workflow}

Image RemovedThese custom button action labels can be added in the workflow builder for each approval.

Set approval custom action labels in workflow builderImage Added

Custom approval action labels in the workflow popupImage Added