Add Functions
Last updated 12/07/2023
How to Add a Function
Navigate to Functions
1. Click Logic in the menu.2. Click Functions in the sub-menu.
![Functions Menu Item](/2.5/img/logic/functions/add-functions/functions-menu-item.png)
Figure 1 - Functions menu item
Add a Function
1. Click the Add Item button.![Add Item Button](/2.5/img/logic/functions/add-functions/add-item-button.png)
Figure 2 - Add Item button
2. Type an ID in the Function ID field.
tip
JavaScript is the default language, you can change this by clicking the lookup icon in the Language field and selecting another option!
![Add Your Function](/2.5/img/logic/functions/add-functions/add-function.png)
Figure 3 - Add your function
3. Click in the Code field to open Five's Code Editor.
![Code Field](/2.5/img/logic/functions/add-functions/code-field.png)
Figure 4 - Code field
tip
Five automatically adds a template for you!
4. Type your code in the editor.
![Add Your Code](/2.5/img/logic/functions/add-functions/add-code.png)
Figure 5 - Add your code
5. Click the Save button in the editor app bar.
![Save Your Code](/2.5/img/logic/functions/add-functions/save-code.png)
Figure 6 - Save your code
6. Click the Save button in the form app bar.
![Save Your Function](/2.5/img/logic/functions/add-functions/save-function.png)
Figure 7 - Save your function