You can use any field as a token in another field in the Views module by default.
So, if you want to combine text fields together, say that you have field A with the value "Hello" and field B with the value "World", and you want the field concat with the value "Hello World":
1) Change field A, select an exception from the display, do the same with field B 2) Create field C as Global: Text and make sure it is ordered after field A and field B (you can use fields only as tokens if they are defined before the target field). 3) Now you can see the replacement patterns that are available to you only under the text area of ββvalues ββin field C. It will be something like [field A] [field B]
Now, if you want to calculate a numeric field based on two other fields, the method is similar to concat, except for the C field, you should use the Global field: Math Expression: 1) Change the A field, select an exception from the display, do the same with the field B 2) Create field C as Global: Math Expression and make sure that it is ordered after field A and field B (you can use fields only as tokens if they are defined before the target field). 3) Now you can see the replacement patterns that are available to you only under the textarea value in field C. It will be something like [field A] + [field B]
Christopher hang
source share