Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden fields stay empty? #260

Closed
kwiznix opened this issue Jun 8, 2021 · 3 comments
Closed

Hidden fields stay empty? #260

kwiznix opened this issue Jun 8, 2021 · 3 comments

Comments

@kwiznix
Copy link

kwiznix commented Jun 8, 2021

Hello,

I try to use hidden field but when I look in Postman I see the hidden fields empty?

My code:
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": {},

Is this an issue? of am I doing something wrong?

@mathio
Copy link
Collaborator

mathio commented Jun 8, 2021

Hello @kwiznix

Since hidden fields can contain sensitive information they are added to the URL hash for security purposes. I think you will not see them in network request (Postman or dev tools) nor will they be logged in any network logs.

If you inspect your page source code you should see an iframe with src - the URL points to your typeform and it should contain # sign with hidden fields after it.

Did you set up hidden fields for your typeform in builder?

@kwiznix
Copy link
Author

kwiznix commented Jun 8, 2021

Ah right, I see them in that url, for now I dont need them in typeform itself.

What I need to do is get the results of a Typeform with a certain ID, and do some stuff with that data, also I need those 2 values, is there a way to do this with Typeform? but now I think about it, i think I can add that data manually when I am doing that stuff in the code, and dont need typeform to do that for me, thanks for your reply!

@mathio
Copy link
Collaborator

mathio commented Jun 8, 2021

@kwiznix you should setup hidden fields in your typeform even if you dont need to display the data in the typeform itself. Hidden fields will be included in the results.

@mathio mathio closed this as completed Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants