How to use a hidden field in the title of a question using Create API? | Community
Skip to main content
Answered

How to use a hidden field in the title of a question using Create API?


Gabriel Gabrie

From the Typeform Builder, I can simply type ‘@’ and I can see hidden fields and variables to use within the title.

 

But, how can I use/call a hidden field in the title of a question, when creating a Typeform using the Create API?

The “title” field of question is of type string, so I’m not sure how to embed/call a hidden field from within this string.

 

Best answer by Gabi Amaral

Hey @Gabriel Gabrie! Welcome to the Typeform Community! 👋🏼

While I'm investigating internally the answer to your question, I'd like to send you some useful resources from our developer portal for your to understand a bit better how the "Create API" works in Typeform.

By the way, as you can see on this article from our Developer help centre, hidden field is an array. In the meantime, I'm also tagging @mathio and @picsoung who might be able to help.

Wishing you a great day! 😊

View original

4 replies

Gabi Amaral
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 1779 replies
  • Answer
  • August 3, 2022

Hey @Gabriel Gabrie! Welcome to the Typeform Community! 👋🏼

While I'm investigating internally the answer to your question, I'd like to send you some useful resources from our developer portal for your to understand a bit better how the "Create API" works in Typeform.

By the way, as you can see on this article from our Developer help centre, hidden field is an array. In the meantime, I'm also tagging @mathio and @picsoung who might be able to help.

Wishing you a great day! 😊


Gabriel Gabrie
Gabi Amaral wrote:

Hey @Gabriel Gabrie! Welcome to the Typeform Community! 👋🏼

While I'm investigating internally the answer to your question, I'd like to send you some useful resources from our developer portal for your to understand a bit better how the "Create API" works in Typeform.

By the way, as you can see on this article from our Developer help centre, hidden field is an array. In the meantime, I'm also tagging @mathio and @picsoung who might be able to help.

Wishing you a great day! 😊

Thanks @Gabi Amaral, yes I see that hidden fields is an array, which makes sense. My issue lies in the title property being a string. How can I call the hidden fields from that array and put them into the title? :(


Xavi
Ex–Typefomer
  • Ex–Typefomer
  • 4 replies
  • August 16, 2022

Hello @Gabriel Gabrie,

IIRC you can use a hidden field by typing {{hidden:<hidden_field_name>}}

For example, in the title property of a given field you could use

”title”:“Hello {{hidden:user_name}}, how are you doing today?”


Xavi
Ex–Typefomer
  • Ex–Typefomer
  • 4 replies
  • August 16, 2022