---
title: "Concatenate string from species list with number from code list"
url: "https://openforis.support/questions/3336/concatenate-string-from-species-list-with-number-from-code-list"
tags: ["collect"]
status: "answered"
score: 0
answer_count: 1
asked: "2022-03-16T20:05:18"
last_activity: "2022-03-16T22:40:18"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Concatenate string from species list with number from code list

Asked by janklein on 2022-03-16

Hello OF-team,

I would like to concatenate a taxon name from my species list with a number from a code list.

For example: 
"Fabaceae sp". + "1" = "Fabaceae sp.1"

I am trying with the following code, but in the new field, only the taxon name appears:
concat(idm:speciesListData('spp_list', 'scientificName', species),string(code_list))
If I add additional arguments, the result remains the same, so I assume that the concat() function does not recognise the arguments.

Thanks for any piece of advice,
Jan


## Answer (score 0, by Stefano (OF) on 2022-03-16)

Link: https://openforis.support/questions/3336/concatenate-string-from-species-list-with-number-from-code-list/3338

Dear Jan,  
Please try to change your expression into: `concat(species/@scientific_name, code_list)`  
since you don't need to cast the code value to a string in that case and you can find the scientific name information already associated to the taxon attribute value.  
Also, please check that the calculated attribute is not marked as **Calculated only one time**, otherwise its value won't be recalculated every time you change the value of species or the code_list attribute.  
Many thanks,  
Open Foris Team
