Add a row number variable to a survey | XM Community
Question

Add a row number variable to a survey

  • 12 July 2021
  • 5 replies
  • 15 views

Hi,
is there a way to add a variable that is the row number in the response table and use this as a key in my survey?
I'm trying to create a short unique ID (4 digit) that is unique within my responses, and still easy to use.
Thanks,
David


5 replies

Userlevel 7
Badge +21

You can use Quotas.

Thanks!
But does it create a variable I can access?
I created one but it didn't create a variable.
I want later to link it to another survey using this key variable.

Userlevel 7
Badge +21

Please read the support pages on Quotas for more details.

Badge

Hi,
is there a way to add a variable that is the row number in the response table and use this as a key in my survey?
I'm trying to create a short unique ID (4 digit) that is unique within my responses, and still easy to use.
Thanks,
David

Hi @dettun are you able to get a solution for this? I am having the same issue. Thanks!

Userlevel 3
Badge +6

Hi @trix1234 ,

 

If the 4 digit number doesn’t have to be in random order, you can use quota (as what ahmedA mentioned).

I guess it is something like this:

set embedded data “complete_survey”=1 after your last question This is to indicate survey is complete.

Set quota from 0/100 to 0/9999 and condition to increment when “complete_survey”=1

set embedded data “response_number”= (piped text quota)

In your data & analysis tab, you can view a column “response_number” starting from 0 to 9999 if you have 10000 entries.

 

Leave a Reply