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

393
1
02-01-2021 05:51 PM
MikeOnzay
Regular 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