Add a row number variable to a survey | XM Community
Skip to main content
Question

Add a row number variable to a survey

  • July 12, 2021
  • 5 replies
  • 44 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

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • July 12, 2021

You can use Quotas.


  • Author
  • July 12, 2021

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.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • July 12, 2021

Please read the support pages on Quotas for more details.


Forum|alt.badge.img
  • May 16, 2024

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!


Forum|alt.badge.img+22

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.