13th June 2024
New Script Fields 📜
We're totally pumped to announce script fields in InfoLobby.
Script fields are asynchronous fields that load into the UI after a record loads, preventing any interface slowdown. They never cache their value, so you can have 100% faith in the fact that the value you see onscreen is the correct value.
They can do just about anything, and have full access to all your data, unlike calculation fields, which have a more limited range.
Script fields can also return full HTML payloads, meaning you can use them to generate tables, charts, form headings, simple dashboards, and other interesting features. Hell, you can even have them return style tags to alter the page color scheme.
Or, you can just use them to police your data, and show a big red flag if something's not right.
When to use which?
Calculation | Script | |
Language | MySQL | LobbyScript (PHP) |
Synchronous | Yes | No |
Filterable | Yes | No |
Data Reach | Limited | Full |
Max Run Time | 0.1s | 30s |
Return | Number / Simple Text | Full HTML |
Go ahead. Give script fields a spin. If you get stuck, just ask for help in the Lobby.