Can I check for multiple values in Logic like "Check if hidden field XYZ contains either the value 1,2 or 3? | Community
Skip to main content
Answered

Can I check for multiple values in Logic like "Check if hidden field XYZ contains either the value 1,2 or 3?


Hey there,

I’m pretty new with Typeform and want to utilize a hidden field e.g. “Rating” prepopulated by Webshop with values 1,2,3,4 or 5 depending on what the customer clicks. So far everything works fine. 

But I have a question re/ improving my Quality of Life :)

Values 1,2,3 (equals “bad”) I want to send to a specific question heading like “Oh we are sorry”

Values 4,5 (equals “good”)I want to send to a specific question heading like “Oh great”

Can I save me some logic work by e.g. doing “equals 1,2,3” or do I really need to setup individual logic-lines for that?

 

See https://prnt.sc/E5ZgwEk9SWfl

E.g. in Jira I could do something like labels in (a,b,c)

Thanks!
Jochen

Best answer by Liz

Hi @JocSim Thanks for reaching out! Yes, you would need to set individual logic for each of the options, but I don’t think it’s too terribly complicated to do. I made a super short video below explain. 

 

View original

3 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • Answer
  • March 9, 2023

Hi @JocSim Thanks for reaching out! Yes, you would need to set individual logic for each of the options, but I don’t think it’s too terribly complicated to do. I made a super short video below explain. 

 


  • Author
  • Explorer
  • 1 reply
  • March 9, 2023

Hey @Liz 

 

thanks for the nice support here. 

If I would simple do a check for “1 or 2 or 3” that would be easy, yeah. But I want to combine it with another hiddenfield which is the locale (e.g. branch between Germany and English) and if I understood it correctly now I need to do
 

  • If “1” AND German, than do AAA
  • If “2” AND German, than do AAA
  • If “3” AND German, than do AAA
  • If “4” AND German, than do BBB
  • If “5” AND German, than do BBB
  • If “1” AND English, than do CCC
  • If “2” AND English, than do CCC
  • If “3” AND English, than do CCC
  • If “4” AND English, than do DDD
  • If “5” AND English, than do DDD

But I assume that’s now how I have to do it, right?

Best,

Jochen


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • March 10, 2023

Hi @JocSim That’s correct!