Select to view content in your preferred language

Concat not working in browser

643
2
Jump to solution
03-22-2023 05:35 AM
mapmcburney
Occasional Contributor

I have this simple concat calculation in my form. It works perfectly in the Survey123 application but in the browser (and experience builder) it does not. It fills all values with NaN. Can anyone tell me how to fix?

I also already tried setting the calcualtionMode="always"

concat.JPG

 

 

0 Kudos
1 Solution

Accepted Solutions
DougBrowning
MVP Esteemed Contributor

That is because you are also using +.  The browser does not like + at all.

concat takes multiple arguments so just do

concat(string(${StudyNumber}), "-", string(${TrialID}))

hope that helps 

View solution in original post

2 Replies
DougBrowning
MVP Esteemed Contributor

That is because you are also using +.  The browser does not like + at all.

concat takes multiple arguments so just do

concat(string(${StudyNumber}), "-", string(${TrialID}))

hope that helps 

mapmcburney
Occasional Contributor

Thank you!