Select to view content in your preferred language

Is it possible to format a repeat in a report without a comma at the end?

759
1
02-01-2021 05:51 PM
MikeOnzay
Frequent Contributor

If my repeat contains: 

Charlie Smith

Mali Woods

River Phoenix

Chewy Dogg

${#crews} ${name_label} ${/} - will output: Charlie Smith Mali Woods River Phoenix Chewy Dogg

${#crews} ${name_label}, ${/} - if I add a comma after name label it will output: Charlie Smith, Mali Woods, River Phoenix, Chewy Dogg,

Is there a way to not show that last comma in the report?

0 Kudos
1 Reply
Jing_Sun
Esri Contributor

I think a workaround is to add a hidden question in the survey to store the list, using the join() function. 

Put something like this in the calculation: join (",",${name_label})

0 Kudos