Answered

`data-tf-hidden` not working on live embeds

  • 31 August 2023
  • 5 replies
  • 274 views

Userlevel 1

Using the new ‘live’ embed code I can’t seem to set hidden fields directly in the snippet.

I’m doing this:

<div
data-tf-live="<embed-id>"
data-tf-hidden="user_id=123"
></div>
<script src="//embed.typeform.com/next/embed.js"></script>

But when the page loads, the actual widget embed generated inside that div contains data-tf-hidden=“user_id=”, and the form submits with an empty value for that field.

icon

Best answer by mathio 4 September 2023, 09:38

View original

5 replies

Userlevel 7
Badge +5

Hi @culturedays Could you share the URL where you have the form embedded? Thanks!

Userlevel 1

@Liz https://culturedays.ca/en/_typeform-test

Userlevel 7
Badge +5

Thanks! @mathio do you know anything about hidden fields with the new live embed?

Userlevel 7
Badge +5

Hello @culturedays and @Liz , unfortunately this is not supported at the moment.

If you need to pass specific hidden fields values to your embedded forms I suggest your use our embed SDK directly.

We do plan to address this issue in future, however I can not give any dates at the moment.

Userlevel 1

@mathio thanks, I switched to using the embed SDK and it’s working great. It would be helpful if you added a note about this to your documentation.

Reply