---
title: "Field action"
description: "Run when a field action fires, such as a button click."
canonical_url: "https://docs.vettero.com/build/event-handlers/field-action"
---
# Field action

> Run when a field action fires, such as a button click.

<trigger-meta group="Table" icon="i-lucide-mouse-pointer-click" type="table.on-field-event">



</trigger-meta>

**Field action** runs when a field action fires on the selected [table](https://docs.vettero.com/data/tables) and field — for example a [Button](https://docs.vettero.com/data/tables/button) **click**.

## Payload

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        tableId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Table to watch
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        fieldId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Field that owns the action
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        eventName
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Action name. Default: <code>
        click
      </code>
    </td>
  </tr>
</tbody>
</table>

## Trigger data

Available as `args.*`. `row` matches the selected table. `data` follows the field action.

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        tableId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Table id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        fieldId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Field id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        eventName
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Action that fired
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        rowId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Row id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Action payload
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        row
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Row values
    </td>
  </tr>
</tbody>
</table>

## Use case

- A [Button](https://docs.vettero.com/data/tables/button) labeled Approve, Send reminder, or Sync — click runs this handler instead of (or as well as) delete/archive/edit.
- Row-level actions the grid should not do automatically on every field edit.
- Event name defaults to `click`; keep the button trigger empty when the only outcome should be this handler.

<trigger-page-nav>



</trigger-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
