DevelopersNewsOpen Source

Appsmith Announces More Powerful JavaScript Editor


Appsmith has announced a more powerful JavaScript Editor which enables developers to easily create complex internal applications with multiple functions in a single file.

With the new JavaScript Editor, for example, it is possible to transform data from the popular Freshdesk API which is not returned in a user-friendly format — with dates returned as ISO strings. With Appsmith, the dates can be made more human-readable using helper functions and then that same command can be applied after each API returns.

Another example is control over JavaScript executed on the ‘Page Load’ command so that, for example, it is now possible to write logic that checks for authentication of the user’s access token and if that is not present, then redirects to a login.

New capabilities enabled by the JavaScript Editor include:
– Reuse application logic and helper functions;
– Define multiple functions and variables inside a JSObject so that it can be accessed anywhere;
– Define queries with many conditions;
– Declare global constants that can be accessed anywhere.

Don't miss out great stories, subscribe to our newsletter.

Login/Sign up