Answered

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

  • 8 December 2022
  • 2 replies
  • 444 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

 

icon

Best answer by mathio 8 December 2022, 21:03

View original

2 replies

Userlevel 7
Badge +5

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

Userlevel 7
Badge +5

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