Maintain Functions
Last updated 12/07/2023
All function records are listed in the Functions view for you to select if you need to update or view the record.Edit a Function Record
1. Select a function record in the list.2. Either click directly in the Function ID field, or click the Edit button in the form app bar.
![Edit Button](/2.5/img/logic/functions/maintain-functions/edit-functions/edit-button.png)
Figure 1 - Edit button
3. Click in the Code field to open the Code Editor.
![Code Field](/2.5/img/logic/functions/maintain-functions/edit-functions/code-field.png)
Figure 2 - Code field
4. Make the necessary changes to your code.
5. Click the Save button in the editor app bar.
![Save Button](/2.5/img/logic/functions/maintain-functions/edit-functions/edit-code.png)
Figure 3 - Save button
6. Click the Save button in the form app bar.
![Save Button](/2.5/img/logic/functions/maintain-functions/edit-functions/save-button.png)
Figure 4 - Save button
Delete a Function Record
1. Select a function record in the list.2. Click the Edit button in the form app bar.
![Edit Button](/2.5/img/logic/functions/maintain-functions/delete-functions/edit-button.png)
Figure 5 - Edit button
3. Click the Delete button in the form app bar.
![Delete Button](/2.5/img/logic/functions/maintain-functions/delete-functions/delete-button.png)
Figure 6 - Delete button
4. Click the Yes button.
![Yes button](/2.5/img/logic/functions/maintain-functions/delete-functions/yes-button.png)
Figure 7 - Yes button
tip
Five will automatically remove the function if it is attached to any events!
Cancel Code Changes
1. Click the Cancel button in the editor app bar.![Cancel Button](/2.5/img/logic/functions/maintain-functions/cancel-changes/cancel-button.png)
Figure 8 - Cancel Button
2. Click the Cancel button in the form app bar.
![Cancel Button](/2.5/img/logic/functions/maintain-functions/cancel-changes/form-cancel-button.png)
Figure 9 - Cancel button
Open a Function in Full Screen
1. Click the Fullscreen button in the editor app bar.![Fullscreen Button](/2.5/img/logic/functions/maintain-functions/fullscreen/fullscreen-button.png)
Figure 10 - Fullscreen button
2. To remove fullscreen, click the Exit Fullscreen button in the editor app bar.
![Exit Fullscreen Button](/2.5/img/logic/functions/maintain-functions/fullscreen/exit-fullscreen-button.png)
Figure 11 - Exit Fullscreen button
Open a Function in Five's Code Editor
tip
You can select a function record from the list and choose to open it Five's large Code Editor!
1. Select a function record in the list.
2. Click the Open in Code Editor button in the form app bar.
![Open in Code Editor Button](/2.5/img/logic/functions/maintain-functions/open-code-editor/open-in-code-editor-button.png)
Figure 12 - Open in Code Editor button
info
Five will open your code in the Code Editor.
![Code Editor](/2.5/img/logic/functions/maintain-functions/open-code-editor/code-editor.png)
Figure 13 - Code Editor