How to uniquely identify each answer? | Community
Skip to main content
Answered

How to uniquely identify each answer?

  • December 17, 2021
  • 6 replies
  • 908 views

Forum|alt.badge.img

Hello community! I need to uniquely identify each response from the typeform, to redirect each user to a different url of the type https://final_url.com/?id=unique_id.

It would be very easy if each typeform response had its unique id which could then be stored in a variable, but it doesn't.

Any suggestions to solve it? Thanks!

Best answer by DimNC

The is not a feature like this within the form itself (just after the submit button is clicked).

One way to do that, if you know PHP, is to create a script that will :

  1. Instead of sending your respondents a link to your Typeform, send them a link to a .php page that:
    1. Generates a unique identifier (aka GUID, ex: 12345)
    2. Adds the GUID as a parameter to your Typeform URL (my.typeform.com/form?hiddenfield1=x&GUID=12345)
    3. Automatically redirects on your Typeform
  2. Then, on Typeform, set “GUID” as an hidden field
  3. On your exit page, set the redirection link to https://final_url.com/?id=GUID
View original

6 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14847 replies
  • December 20, 2021

Hi @Garral Happy Monday! Once the form is submitted, it generates a response ID, which is unique to each respondent, though it isn’t possible to add this to the redirect URL since the form needs to be submitted first. 

Are you directing the respondents into the form from somewhere? For example, if they’re coming from your CRM system, you could add a unique ID to their CRM profile and then pass that into the form using hidden fields


Forum|alt.badge.img
  • Author
  • Explorer
  • 8 replies
  • December 20, 2021

Thank you Liz for your reply. I really need the unique code to be generated before submitting the Typeform as the user is anonymous when it comes to completing the form.
Hope the development team takes this into account as it doesn't seem difficult to implement. Greetings


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14847 replies
  • December 20, 2021

Ah, I see, @Garral . We don’t have a feature like this within the form itself (just after the submit button is clicked), but I can share this feature suggestion with them. 

Let us know if you think of any other questions. 


Forum|alt.badge.img
  • Author
  • Explorer
  • 8 replies
  • December 20, 2021

Thank you, hope you can solve it soon. Greetings!


  • Navigating the Land
  • 1 reply
  • Answer
  • June 16, 2022

The is not a feature like this within the form itself (just after the submit button is clicked).

One way to do that, if you know PHP, is to create a script that will :

  1. Instead of sending your respondents a link to your Typeform, send them a link to a .php page that:
    1. Generates a unique identifier (aka GUID, ex: 12345)
    2. Adds the GUID as a parameter to your Typeform URL (my.typeform.com/form?hiddenfield1=x&GUID=12345)
    3. Automatically redirects on your Typeform
  2. Then, on Typeform, set “GUID” as an hidden field
  3. On your exit page, set the redirection link to https://final_url.com/?id=GUID

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14847 replies
  • June 17, 2022

Thanks, @DimNC ! This is really helpful. 


Reply