Can i use concat() function using 'label' not 'name' column?

Hi buys,

Can i use concat() function using label column information not name column?

@diogosantos, here are some workarounds that should help you explain how the concat can be used when designing XLSForm.

Hi @Kal_Lam,

I didin’t find nothing about using label information instead name.

That’s my problem:

image

I would like to know if there is a possibility for the ‘ID Cadastral’ field to return the code XXXXXX01 (label column) instead of XXXXXX01_1 (name column) as it happens

image

You can use the jr:choice-name() function, see ODK XForms Specification. With the search function of this forum you can find additional hints and examples, please.

Thanks @wroos!

I used the following expression with jr:choice=name function and it works.

if(${Domic_lio} != ‘nao_consta’,
concat(${Codigo_do_Nucleo},${Quadra},${Lote},jr:choice-name(${Imovel_CDRF},‘${Imovel_CDRF}’)),
concat(${Codigo_do_Nucleo},${Quadra},${Lote},${Imovel_CDRF_2})
)