Pass hidden field to Conversation | Community
Skip to main content
Answered

Pass hidden field to Conversation

  • March 8, 2021
  • 1 reply
  • 94 views

Hi, I want to pass a hidden field (“hidden1”) to an embedded conversation, so I can use basically the same survey in different places on the website, but tweaked for it’s particular context. 

The code builder for the CUI doesn’t include that. Could I just add that in manually? 

Where would it go in this example? Or is it not possible?

<div class="cui-embed" style="height: 400px; width: 100%;" data-cui-uid="n0CLapn2" data-cui-avatar="https://images.typeform.com/images/UJAaKKPmbkHQ" data-cui-mode="widget"></div> <script src="https://public-assets.typeform.com/confab/embed.js" async></script>

Best answer by Mariana

Hello @Ian HC. Welcome to the Typeform Community! :blush:

 

Yes, it is possible! To add hidden fields, you can add additional data attributes like this: 

data-cui-hidden-name="Carlos" data-cui-hidden-city="Barcelona"

 

Hope this helps! Let us know if you have any questions when adding it :)

View original

1 reply

Mariana
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 679 replies
  • Answer
  • March 9, 2021

Hello @Ian HC. Welcome to the Typeform Community! :blush:

 

Yes, it is possible! To add hidden fields, you can add additional data attributes like this: 

data-cui-hidden-name="Carlos" data-cui-hidden-city="Barcelona"

 

Hope this helps! Let us know if you have any questions when adding it :)


Reply