Select to view content in your preferred language

Survey123 doesn't recognize the "/" character when using concatenate function

1325
3
03-29-2017 08:50 PM
BlueSphereAdmin
New Contributor

I need Survey123 to recognize a forward slash as a remark with the concatenate function.

Example: concat(${sample_name},"/",${depth_range}).

When I do this, it results as no space or character in between. How do I get it to recognize the forward slash so I can have the answer in my desired format?

Thanks

0 Kudos
3 Replies
CarmelConnolly3
Occasional Contributor II

Hi Kirsty,

If you use the HTML code for the character, it'll recongise it!:

concat(${sample_name},"/",${depth_range})

Carmel

0 Kudos
deleted-user-PF38P_WNl02r
New Contributor II

I was working on something that used the same method and when I tried using the HTML code it didn't work.  However I tried:

concat(${someVariable}, '/', ${someVariable})

This seemed to have worked.  I am wondering if the double quotes are messing with the function.

CarmelConnolly3
Occasional Contributor II

You're right, single quotes work 🙂

Carmel

0 Kudos