I have a behavior I am attempting to only set form default value on if the form is empty. In the intialiser I have an if statement checking the freetext field for a value. I've tried about every combination of logic to check the field for data and I keep getting unexpected results.
What is the return on a free text field? For error checking I've added HelpText of the value being read in from the field using getValue() and I am consistently seeing "null" being returned even when there is data in the field.
What would be code used to check for an empty free text field? I feel like this rudimentary as I use it all over in other places scripts and behaviors, does the initialiser behave differently?
I've tried booleon comparison, string comparison, and nothing seems to be working well.