Are you summing data or concatenating text strings?
If it is numbers you can use the Calculation Tab'x options of "Field is the _____ of fields:" and select the operation and fields or use the Simplified Field notation if the field names comply the with the requirements for the Simplified Field Notation option.
I'm contcatenating text strings. I used the below getField script but it's not working. Am I missing something?
this.getFeild("Text1").value = this.getField("FL052").value + this.getField("FL053").value;
FL052 & FL053 are address fields that I'm trying to combine into one field in Text1
When in a field and trying to reference it one should use the "event.value' to access the field's value property. The value of the object field is not updated until on leaves the field. I would use:
event..value = this.getField("FL052").value + this.getField("FL053").value;
For the custom calculation script.
Did you copy and paste this or type it again? I ask because there's a typo.
Becareful when copying and pasting as MS Word Smart Quotes will caus a big problem.
No, I did not copy and paste. I retyped. It worked. Thanks for the help!
If you want to concatenate strings, you should use the valueAsString property when getting the values of fields:
event.value = getField("FL052").valueAsString + getField("FL053").valueAsString;