> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditional approval

> Learn how to set up conditional approval for DingTalk OA Approval: add conditional branches, configure single or multiple conditions, copy conditions, and adjust priority so that Approval forms are automatically routed to the corresponding approvers based on conditions.

## 1. Overview

<Note>
  Admins can set up conditional approval.

  A conditional branch is not a Step in the traditional sense — it is used to split the flow under complex conditions. A conditional branch runs only when its specific rules are met. Based on the process design diagram, conditional branches at the same Tier are evaluated **from left to right by priority.** As soon as one branch's rules pass, the remaining branches are skipped. **Exactly one conditional branch will ultimately pass.**

  **Use cases:**

  **When an Approval is initiated and different selections lead to different approval Steps, conditional approval is required (**leave requests of 3 days or less go to the manager for approval; requests longer than 3 days require approval from both the manager and the responsible executive**).**

  **When the initiator's Department or Role differs and the approval Steps differ accordingly, conditional approval is required (**Approvals initiated by an Employee are approved by the department manager, while Approvals initiated by a department head are approved by the responsible executive**).**
</Note>

## 2. Prerequisites

* Only an Approval Admin can perform process design, so you must first become an Approval Admin.

If you are not an Approval Admin, open DingTalk OA Approval, tap \[Settings], tap \[Create Approval form], tap \[Request Admin Permissions], and then tap "Submit".

<div className="grid grid-cols-3 gap-4 my-4">
  <Frame>
    ![Open DingTalk OA Approval and tap Settings](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZmyDkLO8g/img/3bc72db6-0758-4388-85fa-5b516370ef92.png)
  </Frame>

  <Frame>
    ![Tap Create Approval form](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZmyDkLO8g/img/d76c8667-79ad-4856-bbd1-db2bfb11d9ca.png)
  </Frame>

  <Frame>
    ![Tap Request Admin Permissions and submit](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZmyDkLO8g/img/f0f909f7-8058-44ef-8388-ed6868c815a2.png)
  </Frame>
</div>

Once the Admin receives the pending approval reminder and approves it, the corresponding Employee is automatically granted Approval Admin Permissions.

<div style={{maxWidth:'400px',margin:'16px auto'}}>
  <Frame>
    ![Pending approval reminder for granting Admin Permissions](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZmyDkLO8g/img/f0a67e04-bf73-4e3d-ab03-2676c919a89f.jpeg)
  </Frame>
</div>

## 3. Steps

### 1. Enter Approval settings

On the **Approval Admin Console** — **Form management** page, click \[**Edit**] under Form Actions.

<Frame>
  ![Click Edit under Form Actions on the Form management page](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZmyDkLO8g/img/0aa4e5e9-e662-4552-866b-60163ba741b8.png)
</Frame>

Click \[**process design**] to open the main process design interface.

<Frame>
  ![Click process design to open the main interface](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/YdgOk2b0JJJNXq4B/img/1991fcb9-5976-4331-bc66-5332c816016e.png)
</Frame>

### 2. Add a conditional branch

Click the "+" icon and select "conditional branch".

<Frame>
  ![Click the plus icon and select conditional branch](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/c9073e3c-eddd-40ff-8843-3d6376982a7c.png)
</Frame>

### 3. Set a single condition

Click the condition Card to open the side panel and start configuring the condition.

<Frame>
  ![Click the condition Card to open the side panel](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/121fe147-b65f-49a9-9078-bdd9d35349a6.png)
</Frame>

The default condition is based on "initiator".

<Frame>
  ![The default condition is based on initiator](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/032e28c5-0ad3-4609-9575-f6d0423919b0.png)
</Frame>

If the default condition is not needed, click the trash-can icon next to the condition to delete it.

<Frame>
  ![Click the trash-can icon to delete the default condition](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/9a810f46-5f05-4ea5-84d2-e9c2dc3c005b.png)
</Frame>

### 4. Require multiple conditions to be met simultaneously

Click \[Add condition] to require multiple conditions to be met at the same time. The relationship between conditions is "AND".

In the condition Settings side panel, click \[Add condition]:

<Frame>
  ![Click Add condition in the condition Settings side panel](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/3dd9897b-ebd0-4019-ba47-fac3b740ce24.png)
</Frame>

In the condition selection dialog, select the Form Fields used to differentiate the Approval process, then click \[Confirm]:

<Frame>
  ![Select Form Fields in the condition selection dialog](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/fc82d8df-b71f-48e6-8173-70b200f2d63f.png)
</Frame>

After you set the evaluation rule for each condition and save, the condition Card in the process diagram displays multiple conditions in an "AND" relationship (for example, duration less than 12 hours AND initiator belongs to the Finance Department):

<Frame>
  ![The condition Card displays multiple conditions in an AND relationship](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/cde19987-6207-436a-a6f4-f1c7eadb89f7.png)
</Frame>

### 5. Require any one of multiple conditions to be met

Click \[Add Condition group] to require any one of multiple conditions to be met. The relationship between Condition groups is "OR".

In the condition Settings side panel, click \[Add Condition group]:

<Frame>
  ![Click Add Condition group in the condition Settings side panel](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/f573900c-b7c0-42c7-bee2-a88b581c34cb.png)
</Frame>

Set the conditions within each Condition group separately. Condition groups are connected by an "OR" relationship — the branch is entered as long as any one group is satisfied:

<Frame>
  ![Multiple Condition groups in an OR relationship](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/066043f0-662a-4ff6-855e-32bbb1b9b713.png)
</Frame>

### 6. Copy a condition

Click the Copy icon on the condition Card to copy the condition together with the Steps beneath it.

<Frame>
  ![Click the Copy icon on the condition Card](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/484a8cd7-c9c2-412e-a015-027da9e4e0ec.png)
</Frame>

### 7. Adjust condition priority

Click the Move arrow on the Card to reorder the condition Cards. Because conditions are evaluated from left to right, reordering the condition Cards adjusts the execution priority of the branches.

<Frame>
  ![Click the Move arrow on the Card to reorder condition Cards](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjZe37oZO8g/img/5d5992f7-d700-411b-8d3f-baae727a612c.png)
</Frame>
