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.
string(any)
string
1
string('New Year''s Eve')
Result: 1640905200000 with the date field New Year’s Eve as Dec 31, 2021
1
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 function string()
doesn’t take the format into account.Last modified 1yr ago