How to use button function linked with a webhook for generating contracts or invoices

I’ve given it a test and it works wonderfully :tada:
What’s especially key is that I’ve managed to set up a fail-safe mechanism. This is crucial because, in Airtable, I frequently use such a button linked with a webhook for generating contracts or invoices, and it’s important to guard against unintended clicks.

Here’s a guide for others on how to do this:

  1. First, add a checkbox field (a boolean in Baserow). I will name the field ‘Check’. You can use any other name you need)

  2. Then, create a formula field using this example:

    button(‘’, ‘:rocket: rocket launch’),
    button(‘’, ‘:rocket: rocket launch’))

    Feel free to replace ‘’ with any URL you need. I use a webhook URL here to trigger actions in n8n. And button text of course)

  3. When the checkbox is unchecked, the button stays inactive. Once checked, it becomes active – a very convenient setup. In n8n, after completing the necessary logic, I include a step to uncheck the checkbox automatically, deactivating the button.

This approach ensures the button is only active when needed, minimizing the risk of accidental activations.

In the screenshot below, you can see that the buttons next to the unchecked checkboxes remain inactive.

1 Like