Overview
There are many places within FreeAgent that allow users to enter custom code. This allows you to create functionality beyond what FreeAgent offers out of the box.
With some of FreeAgents features you can use the javascript programming language to achieve specific behaviors with the data you have in FreeAgent. Some examples are; custom code base app actions, custom code base automations, calculated fields, etc. The code runs on top of a function with a given signature such as async function (record, context) { <your_code_goes_here> }
Here's an example from the Email Application settings. If you select 'yes' for using form scripts the code editor will automatically appear.
Code Editor Features
1. Dark mode theme for easier viewing during extended coding sessions.
2. Numbered code lines for improved readability and navigation.
3. Typing to see hints with the option to use the "ctrl+space" shortcut.
4. Highlighting coincidences in the code, making it easier to identify and update.
5. Automatic hiding of code in brackets {...} with the ability to expand and collapse using a small arrow on the line of code.
6. Command + F
Use the keyboard shortcut of Command + F to bring up some helpful options.
You may have used Command + F in a browser or spreadsheet to search for specific words. You can now do this in the FA coding environment as well. This allows you to search for specific terms and then to replace some or all of the results. This can make debugging code much faster.