Placeholders insert values from the form into text and settings. Write a placeholder in double braces, such as {{ data.firstName }}, and GlobalForms replaces it with the value of the field whose property name is firstName.
Where placeholders work
|
Where |
Values you can use |
Example |
|---|---|---|
|
HTML Element Content |
|
|
|
Select Item Template |
|
|
|
Select Data Source URL |
|
|
|
File Directory |
|
|
|
Edit Grid templates |
|
See Edit Grid |
|
Email action |
|
See Email Action |
|
Address to open after submitting |
|
The Content component doesn't fill in placeholders; it shows them exactly as typed. To show form values in text, use an HTML Element.
The braces look the same everywhere, but emails and Edit Grid templates follow different rules from the rest of the form. Those are covered on their own pages.
Placeholders on the form
These rules apply to the HTML Element, Select and File settings in the table above.
What you can write
|
You can write |
Example |
Result |
|---|---|---|
|
A field value |
|
INV-10042 |
|
Arithmetic |
|
10 |
|
A choice between two values |
|
many |
|
Currency format |
|
$2.50 |
|
Capital letters |
|
INV-7 |
|
A formatted date |
|
11/02/2026 |
-
A field that is empty or doesn't exist gives an empty result, not an error.
-
JavaScript functions such as
encodeURIComponent()can't be called inside the braces; they give an empty result. Use a script instead. See Rules and Scripting. -
Information about the form itself, such as
form.title, isn't available. -
A Date / Time value is stored as a full date and time, such as
2026-11-02T05:00:00.000Z. Use thedateformat shown above to display it.
Updating as the user types
An HTML Element updates as soon as a value it uses changes. A Select with a placeholder in its Data Source URL loads its list again only when one of the fields in its Refresh On setting changes, so set Refresh On to the field the URL uses. See Conditional Lists In Data Grids.
Placeholders in web addresses
Values are inserted exactly as typed, without URL encoding. In a URL, a value containing a space, &, #, / or ? can break the address. Use placeholders in addresses only for fields that hold simple values such as codes and numbers. For other values, build the address in a script with encodeURIComponent(), as shown in QR Codes and Barcodes.
Inside a Data Grid
-
In an HTML Element inside a Data Grid,
datameans the current row.{{ data.item }}shows that row'sitem. Fields outside the grid can't be used there. -
In a Select inside a Data Grid, use
rowfor the current row anddatafor the rest of the form.
Not to be confused with
SQL lookup routes also use double braces, for example {{ params.make }} in a route's query. Those are filled in on the server from the request, not from the form, and are covered on the SQL lookup pages.