Can you use the existence of a hidden field as a logic condition? | Community
Skip to main content
Answered

Can you use the existence of a hidden field as a logic condition?


We’re using Typeform to supplement a leads flow where a user will potentially fill out optional data before reaching the form. In this case, there’s an optional phone number field in the application that we’re passing to the Typeform. I’d like to change the logic flow if that phone number is passed using a hidden field, but I don’t have any other criteria besides its existence.

When I use the logic feature, it requires me to check the hidden field against a condition (is exactly, contains etc). Is there a way to just check that it exists or not, rather than what the data actually contains?

Best answer by undrln

I’ve solved this myself! I changed it “is not equal to” and left the value empty. This ended up working even if the url param wasn’t included at all.

View original

2 replies

  • Author
  • Explorer
  • 1 reply
  • Answer
  • July 30, 2021

I’ve solved this myself! I changed it “is not equal to” and left the value empty. This ended up working even if the url param wasn’t included at all.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14984 replies
  • July 30, 2021

Haha glad to hear this worked, @undrln ! Let us know if you have any other questions. :grinning:


Reply