Combine arrays together

Use this in a calculation field to combine two arrays together.

What this expression does is combine two arrays together into a single string that is displayed in the calculation field.

Most fields in Fulcrum will create a string from the data entered into the field. In those cases the CONCATENATE() or the CONCAT() expression can be used.

Field types like choice fields and classification sets create arrays from the values selected. In situations where you wish to combine two arrays together use the expression below. Please refer this example for combining arrays.

var combined = ARRAY(CHOICEVALUES($first_choice_field),
                     CHOICEVALUES($another_choice_field));

SETRESULT(combined.join(', '));