Writing custom code to calculate new values based on existing data
setUserData
and triggerAction
, and extra context about how the Computed Field was triggered.
Create a Computed Field
+ Add New Computed Field
.full_name
.Add
.Write your custom code
result()
.result()
function.result()
is the User Data, and the other arguments
are described here.window.location
, document
, and localStorage
.full_name
, that takes the user’s first and last name and concatenates them together.
bmi
, that takes the user’s weight and height and calculates their BMI.
is_over_18
, that takes the user’s date of birth and returns a boolean value indicating whether they are over 18.
is_over_18
, that takes the user’s date of birth, entered by the user into month, day and year dropdowns, and returns a boolean value indicating whether they are over 18.