# Empty Date field on Button click

**URL:** <https://forum.seatable.com/t/empty-date-field-on-button-click/7323>\
**Category:** Developer Talk\
**Created:** [April 17, 2026, 10:27am UTC](https://forum.seatable.com/t/empty-date-field-on-button-click/7323 "2026-04-17T10:27:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FamilyBikes](https://forum.seatable.com/letter_avatar_proxy/v4/letter/f/e79b87/32.png) [@FamilyBikes](https://forum.seatable.com/u/FamilyBikes)\
**Post date:** [April 17, 2026, 10:27am UTC](https://forum.seatable.com/t/empty-date-field-on-button-click/7323/1 "2026-04-17T10:27:06Z")

</div>

Can anyone help me?

I want to empty a cell that contains a DATE by clicking a button.

If I try with leaving the value empty (see screenshot), nothing happens.

How can I achieve that? Thx in advance!

 ![CleanShot 2026-04-17 at 12.23.41@2x](https://forum.seatable.com/uploads/default/original/2X/9/99ae9ec8c9d729803cc9ad3365e8288a2e403de0.jpeg)

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [April 17, 2026, 7:58pm UTC](https://forum.seatable.com/t/empty-date-field-on-button-click/7323/2 "2026-04-17T19:58:26Z")

</div>

Unfortunately, the “Modify row” button action currently does not support that.

But: You can use the “Run script” action instead and use this Python script:

```auto
Table = "YOUR_TABLE"
Column = "YOUR_DATE_COLUMN"

from seatable_api import Base, context
base = Base(context.api_token, context.server_url)
base.auth()

base.update_row(Table, context.current_row['_id'], {Column : None})

```

All you have to do is the replace “YOUR\_TABLE” and “YOUR\_DATE\_COLUMN” in row 1 and 2 with the correct names.

---

<div class="post-metadata">

**Author:** ![FamilyBikes](https://forum.seatable.com/letter_avatar_proxy/v4/letter/f/e79b87/32.png) [@FamilyBikes](https://forum.seatable.com/u/FamilyBikes)\
**Post date:** [April 18, 2026, 5:58am UTC](https://forum.seatable.com/t/empty-date-field-on-button-click/7323/3 "2026-04-18T05:58:31Z")

</div>

Thank you very much!!! Works perfectly 🤗

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [April 20, 2026, 5:58am UTC](https://forum.seatable.com/t/empty-date-field-on-button-click/7323/4 "2026-04-20T05:58:57Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
