Example of conditionally displaying an action
Use a condition to display actions by adding valid when
and the name of the
condition in parentheses. You can use existing conditions or you can create new conditions
using the Configuration Console.
In this example, use the IsAnIndirectReport
and
IsADirectReport
conditions.
Actions
action is ActiveEmployeeWorkAssignmentsForManagerRel.SimpleTransfer
valid when (IsAnIndirectReport)
action is SimpleTerminate
valid when (IsADirectReport)
When the My Teams page is reloaded, if an employee is a direct report,
only the Terminate
action is displayed. If an employee is an indirect report,
only the Transfer
action is displayed.