Answered

Embedding

  • 23 February 2022
  • 3 replies
  • 105 views

Hi,

I have created a type form that has hidden fields, now I want to embed the form on an HTML page on my bed site.

But I am now sure how the query string will work and read the parameter values.

Currently, the form is not able to read the parameters' values, please help me on this.

icon

Best answer by mathio 24 February 2022, 09:04

View original

3 replies

Userlevel 7
Badge +5

Hi @Laxman123 

try embedding on a website, not your bed site 🤣

Sorry. On a serious note now: When you embed, you can

 

Hi @mathio,

Thanks for responding.

Yes I know that we can pass value in data-tf-hidden="name=xxxxx,email=xxxxx" and this work well if I use typeform URL but if we embedding it on HTML not able to pass values from query string to data-tf-hidden="name=xxxxx,email=xxxxx".

It would be a great help if you can share a sample code for html page for dummy URL below.

https://domain.com/page.html?name=xxxxx,email=xxxxx

Userlevel 7
Badge +5

In that case it looks like you want to pass values to hidden fields from host page URL. Your code would look like this:

<div
data-tf-widget="<form-id>"
data-tf-transitive-search-params="name,email"
></div>
<script src="//embed.typeform.com/next/embed.js"></script>

 

Reply