Answered

My hidden variables are not saving into my form

  • 21 February 2024
  • 10 replies
  • 56 views

I cannot seem to get my embedded form to save some hidden variables.  Am I doing something wrong on the set up of my form?

 

Here is a sample URL

 

https://staydrycenters.com/am-i-a-candidate-for-emsella/#first_name=John%3E&last_name=Doe&email=johndoe@johndoe.com&closest_sdc_location=Cary,%20NC

 

Everything saves fine except the hidden variables.  

icon

Best answer by mathio 23 February 2024, 15:47

View original

10 replies

Userlevel 7
Badge +5

Hi @StayDryUF Thanks for stopping by the community! Do you mind sharing a screenshot of how you have the hidden fields setup in your form? Additionally, how are your respondents accessing the link? 

Of course.  Thank you.  Here are the hidden fields, the logic, and the advanced tab on the embedding on webpage screens.

 

Userlevel 7
Badge +6

@StayDryUF - can you show screen shot of your results tab please? also, can you try this to validate: connect the form to a google sheet and see what happens when you submit the form. 

the data in the sheet should match the data in the results 

pics of both will help us troubleshoot

 

des

Thanks again.  Here are the screen shots you requested. 

 

# 1 - The results tab

# 2 - I have it connected to excel online instead of Google Sheets.

 

I feel like i’ve done everything correct.  My form on the home page is correctly passing the hidden fields info in the URL, but it’s not saving.  

Here is the form it’s self:  Here is the form that is passing the URL to the TYPEFORM page.  Just complete the form with fake data  (if you let me know the name you use, I’ll delete it later.)

 

www.staydrycenters.com

the form will redirect with the hidden field variables in the URL.

 

Here are the results and the spreadsheet

 

 

 

Userlevel 7
Badge +5

Hi @StayDryUF Are respondents filling out this form and then being redirected to Typeform? 

 

Thanks again everyone for looking at this.   it’s actually this form:

 

http://www.staydrycenters.com

 

It’s for the Quiz.  The URL redirect is passing the variables but it’s not saving them.  

 

 

Userlevel 7
Badge +5

Oh got it, thank you @StayDryUF ! It looks like everything should be set up correctly. 

@mathio do you happen to see anything at the link below that would be preventing this? I can’t see anything that would be stopping the URL parameters unless it’s a privacy thing. 

This is the URL I get when I enter my information on the first form: 

https://staydrycenters.com/am-i-a-candidate-for-emsella/#first_name=Liz&last_name=Typeform&email=hello@typeformtest.com&closest_sdc_location=Boca%20Raton,%20FL

Userlevel 7
Badge +5

Hello @StayDryUF , you need to pass the search params to your website in query string, not the hash. Like this:

https://staydrycenters.com/am-i-a-candidate-for-emsella/?first_name=John%3E&last_name=Doe&email=johndoe@johndoe.com&closest_sdc_location=Cary,%20NC

This seems to work. Please confirm.

Have a nice weekend.

Thank you so much!  That is exactly what I was.  I needed to replace the # with a ? and it worked fine.  It’s funny, all the documentation I read used the hashtag #, which seemed weird to me in the first place.  I just assumed it had something to do with how typeform reads the data.

 

Regardless it’s fixed now and I’m grateful for all the replies and feedback in helping me fix this issue.

Kind regards

 

Uf

 

Userlevel 7
Badge +5

Glad to hear that worked for you, @StayDryUF ! Let us know if there’s anything else we can help with. 😀

Reply