0
string
To convert a given value to a string
This function will return the data of a field or an array as text. It’s a bit like the function concat()
.
If you use this function on a multiple-choice field, it will return the hexadecimal value of that field.
Syntax
string(any)
Return
string
Examples
string('New Year''s Eve')
Result: 1640905200000 with the date field New Year’s Eve as Dec 31, 2021
string('Favorite sports')
Result: d1
(see the example for chosen()
, where Basketball, Dancing, Sailing, and Soccer are chosen, but not Climbing)
Note: Unlike
text()
, the functionstring()
doesn’t take the format into account.
See also
concat
, which returns all items of an array in one string.
text
, converts a value to a string and possibly reflects the format options.
Reply
Content aside
Related Articles