# Button: Script execution

Execute script when clicking the button, with option to save data first.

### Properties

- Type: [Action button](https://docs.tsnocode.com/books/field-type-reference/chapter/action-button)
- Groupable: No
- Show in lists: No
- Searchable: No

## <span class="mw-headline" id="bkmrk-user-interface-1">User interface</span>

<span class="mw-headline">Field in show mode</span>

[![image.png](https://docs.tsnocode.com/uploads/images/gallery/2025-07/scaled-1680-/wWjY6HI8mdZ95Fmt-image.png)](https://docs.tsnocode.com/uploads/images/gallery/2025-07/wWjY6HI8mdZ95Fmt-image.png)

Due to its nature this field has no special editing mode.

## <span class="mw-headline" id="bkmrk-configuration-1">Configuration</span>

<span class="mw-headline">This field requires configuration before deployment.</span>

[![image.png](https://docs.tsnocode.com/uploads/images/gallery/2025-07/scaled-1680-/2yYOFHBjYV5IUKce-image.png)](https://docs.tsnocode.com/uploads/images/gallery/2025-07/2yYOFHBjYV5IUKce-image.png)

<span class="mw-headline">Javascript: Here you write code to be executed when button is pressed.</span>

<span class="mw-headline">Submit after: Saves the record immediately after code has been run.</span>

<span class="mw-headline">Group filter: limit access to a single group.</span>

## <span class="mw-headline" id="bkmrk-developer-info-1">Developer info</span>

- FeltTypeID: 730
- SQL datatype: N/A
- Class name: FieldExecuteJavaScript