How do I make 1 field equal the value of 2 text fields.
I've got text field 1 and I need it to equal the value of address field 1 and address field 2. Essentially, I need what is in address field 1 and 2 to combine to be in one single field, text field 1.
Any suggestions?
Thanks
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.
You can also use the custom JavaScript calculation and use the field names with the "getField" method and the "+" operator to add or concatenate the data. I you do not set the type of value, then JavaScript will make a guess at the type of data, string or numeric, and either concatenate the strings or add the number depending upon how JavaScript has guessed the type of data.
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.
North America
Europe, Middle East and Africa
Asia Pacific