> For the complete documentation index, see [llms.txt](https://docs.coreway.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coreway.com/coreway-table/automation/triggers/form-event-trigger.md).

# 表單事件觸發

### 1. 類型介紹

表單事件觸發是工作流程的一種觸發類型。設定觸發流程的關聯工作表後，當工作表發生記錄增／刪／改時，就會觸發流程，自動執行設定好的一系列動作。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FXsWBOs7ZBf9saeCtbncQ%2F17814321363097.png?alt=media)

進入流程設計頁面後看到的第一個節點，可以稱之為流程觸發節點，也叫觸發器，它同時也是流程的發起節點。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2Fj7fzpioCaC1IrTPHDF4B%2F17814361250201.png?alt=media)

點擊表單事件觸發節點，需要配置三項內容：**觸發的工作表**（選擇表單）、**觸發事件**、**篩選條件**。

* **觸發的工作表**：選擇一個工作表，將觸發節點「綁定」此表，實現對工作表記錄數據的監聽和跟蹤；一旦某條記錄有數據變更，就能開啟工作流程。
* **觸發事件**：即表單事件流程的觸發方式，也是工作表數據的變更方式，如增、刪、改。
* **篩選條件**：透過設置篩選條件，只讓符合條件的數據進入流程。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FWBqfUAqkaAIc0gEfuvKO%2F17814489133977.png?alt=media)

### 2. 配置示例

1. 選擇觸發器要「監聽」的工作表
2. 選擇一個觸發事件
3. 設置篩選條件

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FYx7EFWxlluzZQir8djHT%2F8f48cfcc1616e16c59008d27c3b03132.png?alt=media)

### 3. 觸發的工作表

選擇本應用下的工作表。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FK5UfOOoJRlTq8i9C0Iem%2F59b180e364556fb04cc28b61b454ce77.png?alt=media)

### 4. 觸發事件

#### 4.1 當新增或更新數據時

* 觸發字段為空時，工作表中數據有任何新增或更改都會觸發工作流程。
* 選擇了觸發字段後，只有被選中的字段新增或修改時才會觸發流程，支持選擇多個字段。

![字段.gif](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2Fu022yrAb81dbsbpF7Pe8%2Fff73b347e45384def2d6973ecbd34841.gif?alt=media)

#### 4.2 新增數據

僅當工作表有新增記錄時，才會觸發流程。

#### 4.3 更新數據

僅當工作表的已有記錄內容被修改時，才會觸發工作流程。支持指定更新多個字段。

#### 4.4 刪除數據

刪除工作表的一行記錄後，觸發流程。

### 5. 篩選條件

如下例子：僅讓「指派的成員不為空，且沒有處理結果」的工單記錄進入流程。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FVDWJgoG7ydhhrTUgxADn%2Fc4b9328b29b029d688f669c2c3cc81ed.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coreway.com/coreway-table/automation/triggers/form-event-trigger.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
