---
title: "GLOBALVAL"
url: "https://help.formsfly.com/en/article/globalval"
language: "en"
last_updated: "2023-10-19T10:46:43.854Z"
---

# GLOBALVAL

Gets the Global Value for the specified key name (if any)

* * *

### Syntax

`GLOBALVAL('keyname')`

### Example

Say you have a common field in several Form Screens that the user has to select every time - e.g. a project, client or job number.

If the user tends to select the same value every time, then you should consider storing this in a Global Value.

### Related

[Saving Entry Values For Reuse / Defaulting (Global Values)](https://help.formsfly.com/en/article/saving-entry-values-for-reuse-defaulting-global-values)

### Notes

Global Values are stored as text, so if you use GLOBALVAL() as an assignment to a Date/Time or Number field, then you will need to convert the value to the correct datatype of the target field. This is done using our TODATE() and TONUMBER() functions respectively.
