Delete Entry by clicking on a button

Hello,
How can I achieve that with a click on a button the entry in a row gets erased.
Can anyone help?
Thanks in advance!

Hello.

You can do that with a simple javascript: Base - SeaTable Programming Manual

Thank you for the quick reply.

I do not want to delete the complete row I only want to delete the entry of a column in that row.

In my case when I click the button 4 things should happen:

  1. Date in column “SERVICE” changes :heavy_check_mark:
  2. Checkbutton in column “GRATIS?” changes :heavy_check_mark:
  3. Checkbutton in column “BESTÄTIGT?” changes :heavy_check_mark:
  4. Value in column “VERRECHNEN” gets erased :x:

So far I have this in my script:

const table = base.context.currentTable;
const row = base.context.currentRow;
base.modifyRow(table, row, {'SERVICE' : row['Berechnung Termin'] });
base.modifyRow(table, row, {'GRATIS?' : false});
base.modifyRow(table, row, {'BESTĂ„TIGT?' : false});

What line of code do I need to erase the value?

Again, thank you very much!

Ah okay…

But why don’t you use the button type column?

:man_facepalming:t3:

OMG!!! I was so sure that you need a script for something like that so I did not even look close enough.

Sorry for wasting your time :face_with_diagonal_mouth:

Thank you!!!

1 Like

No problem. There is so much more to discover. Just click on every button you can find :slight_smile:

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