Servis.ai offers several features where users can add custom JavaScript code to extend platform functionality beyond the standard options.
You can use custom code to tailor how data behaves in areas such as:
- App Actions
- Automations
- Calculated Fields
These features run your code using a predefined function structure, typically like this:async function (record, context) { <your_code_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.