Generate uniqe ID variables from numeric questions


I have a concern

so I have these 3 variables from my questionnaire

id1 : single select (from 0-20)
id2 : number (from 1-100)
id3 : single select (from 0-60)

I want to produce string unique variables that contain exactly 2 digit id1 + 3 digit number + 2 digit id3 automatically. any idea how to proceed with it in my survey?


1 Like

Hello @vindrio

Try it:
Create a variable type String with this:

String.Join("",id1.Value.ToString("00"), id2.Value.ToString("000"),id3.Value.ToString("00"))

You should also think about what value the created variable will have when the questions have not been answered.

1 Like

thanks… its really works