Hidden field stay empty | Community
Skip to main content
Answered

Hidden field stay empty


Hello,

 

Maybe I have a wrong understanding of how hidden field work, but basically what I am trying to do:

For a project I want to get the results of a Typeform with a certain ID in my react application and do stuff with that data. for doing that stuff I need two other values which I already know from within the application: the user(name) and the other one is productArea, this is the page where they are at that moment. I thought hidden fields was a good solution for that.

 

So my code for the typeform is:

createPopup(formID, { size: 90, open: "load", hidden: { customerID: user, productArea: RMProductArea, }, onSubmit: (data) => { checkResponse(data.responseId); }, });

both user as RMProductArea are variables with strings as values

if I check in postman for the same responseId in the hidden field part, I see:

"hidden": {},

 

Do I have a wrong understanding of hidden fields? is this an issue? am I doing something wrong? can anyone help me?

 

Thanks in advance!

Best answer by mathio-tf

Hello @Kwiznix ,

please see my reply to your same question on Github:

https://github.com/Typeform/embed/issues/260

View original

2 replies

mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • Answer
  • June 8, 2021

Hello @Kwiznix ,

please see my reply to your same question on Github:

https://github.com/Typeform/embed/issues/260


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14960 replies
  • June 15, 2021

Hi @Kwiznix did @mathio ‘s solution work for you? :grin:


Reply