How to create a random completion code id for the end of a typeform survey? | Community
Skip to main content
Answered

How to create a random completion code id for the end of a typeform survey?


Forum|alt.badge.img

We need to be able to generate a random number or id code.  This will be used for our paid survey takers to mark their survey as completed in another site we use to get our survey takers.  Being we pay our survey takers for their time, we need to ensure we can match their surveys to ensure they did indeed complete it.  Sadly, you do have bad-actors out there that abuse the system, as such we need this for 100% accountable and confirmation of completion.   

Best answer by picsoung

Hey @EcomGuy 

May I ask you what people do with this code afterwards?
Is this like a gift card code that they will redeem in another system?|

If this is the case, could this code be sent by email?
If yes, you can probably rely on webhooks. it will notify your server every time someone finishes and submits the form.
You can analyse their answer and make sure they filled up correctly.

And then send them the code by email.

Another solution would be to rely on the redirect on completion link, but it means implementing logic on the url where you redirect the user to check status of the form.

View original

11 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5268 replies
  • April 6, 2021

@EcomGuy - if you send the users an email with the link to the survey you wish them to take, you could generate the random number/id externally and append it to the email string for a given individual - you could then use the hidden field capability on the typeform to capture the inbound code (assigned to that individual) and you can track in the results of your survey data. 

just a thoughts


Forum|alt.badge.img
  • Author
  • Explorer
  • 9 replies
  • April 6, 2021

Thank you.  Its a good idea, but it would cause the end user to not have a code appear at the “thank you” screen that is required to mark their survey completed, and to get paid. 

 


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5268 replies
  • April 6, 2021
EcomGuy wrote:

Thank you.  Its a good idea, but it would cause the end user to not have a code appear at the “thank you” screen that is required to mark their survey completed, and to get paid. 

 

you could use the @recall function to show that hidden field code on the ‘last question’ if you need to show it. and even have them enter that code into the form and have a double validation mechanism. 

i guess my thinking was that if you sent me an email with a link and i followed the link to the form and completed it, the submission of the form would carry the hidden field value that i had been assigned into the submission of the details that show up in the results tab of the survey data entry. You could then validate that the code for the user was the one assigned to me and you could initiate payment to me. 

if that won’t work, then it’s a waiting game until Typeform creates that functionality

des

 


picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • 384 replies
  • Answer
  • April 6, 2021

Hey @EcomGuy 

May I ask you what people do with this code afterwards?
Is this like a gift card code that they will redeem in another system?|

If this is the case, could this code be sent by email?
If yes, you can probably rely on webhooks. it will notify your server every time someone finishes and submits the form.
You can analyse their answer and make sure they filled up correctly.

And then send them the code by email.

Another solution would be to rely on the redirect on completion link, but it means implementing logic on the url where you redirect the user to check status of the form.


Forum|alt.badge.img
  • Author
  • Explorer
  • 9 replies
  • July 6, 2021

I can’t believe with all the updates Typeform still doesn’t have an easy way to generate end of survey unique referral codes.  What am I missing?  Very frustrating for us in the paid market survey and research field.  We need to be able to match up who did what with anamitity.  Shouldn’t have to guess. 


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5268 replies
  • July 6, 2021

 @EcomGuy - i put an answer to your comment in this thread, over here in this other thread - it’s actually not that difficult to create something as a workaround while we wait for the product team to determine when they might be able to incorporate this into the code itself. 

 

 


Forum|alt.badge.img
  • Author
  • Explorer
  • 9 replies
  • July 6, 2021

 

Having the end user make their own code is not going to cut it. Frankly, it is the best way for us to just throw our market research dollars out the window in the paid survey world.   Sadly too many folks come in to a paid survey to get quick $$ and give bogus answers.  We need to have survey taker accountability with trace back codes we generate.  This is how we remove bad data and reject/block bad actors.  Bad actors will game the system with your “workaround”.  Let’s move on from AOL 2.5 and get us some random codes generator so we can approve good work by survey takers.  Thank you!


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • April 28, 2022

Yeah, pitty that there are only workarounds. Practical solution Typeform could consider creating responseId on start of the form, not on the Submittion, this would give more opportunities and save time creating workarounds. 


  • Navigating the Land
  • 4 replies
  • April 3, 2024

Did anyone work out a good solution to this?

 

Really need to do this so our survey can remain anonymous but can’t find a decent workaround.


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • April 3, 2024

@CArnold 

Hi, well it should be easy.

From where does your form loads?

 

1. create hidden field e.q. uniqueid, in your typeform

2. When someone opens form append uniqueid to the url ?uniqueid=uniqueid 

 

That's it, you have uniqueid for everything, you can also on redirect use that uniqueid e.g. pass to your payment page or elsewhere where you need it.

 

 

 

 

 

 


  • Navigating the Land
  • 4 replies
  • April 3, 2024

Does tis

ValdemarQ wrote:

@CArnold

Hi, well it should be easy.

From where does your form loads?

 

1. create hidden field e.q. uniqueid, in your typeform

2. When someone opens form append uniqueid to the url ?uniqueid=uniqueid 

 

That's it, you have uniqueid for everything, you can also on redirect use that uniqueid e.g. pass to your payment page or elsewhere where you need it.

 

 

 

 

 

 

 

Does this require me to send a different URL to each individual person? As that wouldn’t work.

 

The survey will be mainly shared via social media, WhatsApp broadcast etc.

 

Thanks!


Reply