Field Concatenation Javascript in Dynamics CRM 4.0
Posted Monday, November 23rd, 2009
Concatenation can be a simple thing to do, as long as you know how to do it. I was having some trouble finding some concatenation code, so a colleague pointed me to this code last week. It allows me to concatenate four fields into one field:
crmForm.CONCATENATEDFIELD.DataValue = crmForm.FIELD1.DataValue + crmForm.FIELD2.DataValue + crmForm.FIELD3.DataValue + crmForm.FIELD4.DataValue
The structure of the code is pretty simplistic – the concatenated field would technically be “equal to” to the values of the other four fields. If you want to include more fields, simply add additional fields in the same format to the end of the existing string. Be sure to place the concatenation fields in the order you want it to be seen in the final field.


