I'm trying to create a function for when the data of the field is only populated if parameters in another field are met.
In this example I want Full Name to only be populated if "referral" is true.
Currently keep getting "referral" field not found using:
if field("referral") == "true" then this end
if referral == true then this end
Any ideas what I should be doing instead?