Automations are what make InfoLobby super powerful. When certain events are triggered, you can control what happens next.
From any table page, you can select the Triggers option from the … menu.
The following trigger events are currently supported:
On Create - when a record is created
On Update - when a record is updated
On Delete - when a record is deleted
On Schedule - at a particular time of month / week / day
On Demand - for you to run manually
On Webhook - when a GET or POST HTTP request is received at a unique URL
<aside>
Note: Create, Update, and Delete triggers only fire when a user updates a record using InfoLobby. They will not fire if you update the database directly.
</aside>
The trigger editor allows you to edit the code and other settings for the automation.
Code is interpreted as PHP3(ish). If you’re familiar with PHP, then you should have no troubles here.
While typing, you will get a list of available keywords to auto-complete from.
When your cursor is on a keyword, you will see a small help line about the syntax for that keyword at the bottom of the editor.
The Console panel will also show you the available variables in the trigger.
You can set breakpoints by clicking in the gutter on the line you want a breakpoint at, and you can run the code by clicking the Run button. Execution will pause at every breakpoint and the Console will show all values at that point in the code.