How to pre-populate values in the fields with dynamic variables on-load of embedded typefom? | Community
Skip to main content
Answered

How to pre-populate values in the fields with dynamic variables on-load of embedded typefom?

  • December 8, 2022
  • 2 replies
  • 676 views

Hi, 

 

We use the Typeform in our web-app. We have a email field that needs to be autofilled on login to our app so that the client doesn’t have to re-enter the email. I have the email in `user.email` variable. I just need to add as default value. 

 

I need to convert this 

 

To

 

 

 

div(data-tf-widget="xxxx" data-tf-iframe-props="title=Book a Call (Parent Portal)" data-tf-medium="snippet" data-tf-inline-on-mobile style="width:100%;height:600px;")

script( src="//embed.typeform.com/next/embed.js")

 

This is how I render the Typeform. 

 

Thanks in advance,

Akhila

 

Best answer by mathio-tf

Hello, @ThinksterMath, this is not possible: https://www.typeform.com/help/a/can-i-pre-populate-typeforms-360039114331/

However you can use hidden fields and logic to pass data into your typeform. Eg. if you pass a value for email you can skip the email question. Or you can use a yes/no question to ask if the email address is correct and only display email question if the respondent reply “no”.

View original

2 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14923 replies
  • December 8, 2022

Hi @ThinksterMath @mathio might be able to help answer this for you! 


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

Hello, @ThinksterMath, this is not possible: https://www.typeform.com/help/a/can-i-pre-populate-typeforms-360039114331/

However you can use hidden fields and logic to pass data into your typeform. Eg. if you pass a value for email you can skip the email question. Or you can use a yes/no question to ask if the email address is correct and only display email question if the respondent reply “no”.


Reply