How to track button click?

I inserted a Slack message button into a table and a column in which I write down the last action (click button) time stamp. But how can I create an extra table where I can see historical data, e.g. button pressed on … / row identification factor (e.g. a specific column) / user etc.! Thanks, Manu

You would use something like:

runactions(
   Do your Slack message action,
   Addrow()
)

If you share a dummy doc it is easier to show you how to do this

Thank you so much! I will explain it better. Unfortunately I have no idea how to activate a dummy site. I don’t think our restrictions allow that either. I’m obviously still at the beginning of my “coda career :)”

So I created a Slack button and this one works perfectly. At the same time/in the same menu, I gave the order to create a results column in the configuration window. So if someone press the button - a date is automatically written into the same table where the button is. Unfortunately I can’t enter any further commands like “add row” there. That’s why I thought I had to base the action on the “Button or Result Column”. So basically record the value (date of button press) in a separate table with the above-mentioned additional columns (user etc.). So I write down the history of the button in a separate table, which is not editable.

image

If you edit the button and click on the little ‘f’, you can work with code instead of only using a single command.

If you check out this community, you will find numerous mentions of how to share a doc.

If your organisation does not allow you to share a doc, it becomes problematic, because in that case the community has to make a doc to share with you and try to guess at what you are doing. Most of us are to busy to do that.

You can use a private coda account and share a doc in your private area. That way you keep your enterprise data completely separated from your learning environment.

Thank you. The “formula f” is disabled in this case because I did too much formattings in the Slack content, but I’ll make it “easier” and see if I can implement with your tip. THANKS. Otherwise, I’ll take the private Coda account option.