Conditional piping


Hi there, I am fairly new to Survey Gizmo but I am experienced with survey programming. My JavaScript skills are limited however.

Hoping someone can help me please?

I have to perform some piping in a question. The piped variable is a company name which is to be selected via a number of conditions.

The question is – “How well has [PIPED COMPANY] performed in the last 12 months?”

Example of conditions for [PIPED COMPANY] may be something like this …

Company 1 – IF QA=1 (single response) AND Q1=3 (single response) and Q4A=6 (multiple response)

Company 2 – IF QA=2 (single response) AND Q1=1 (single response) and Q4A=11 (multiple response)

Company 3 – IF QA=1 (single response) AND Q1=2 (single response) and Q4A=8 (multiple response)

I have found some simple piping examples via merged codes and default values in hidden questions. I was hoping to create a hidden question with the 3 company names as the code options and applying the above mentioned conditions somehow to calculate either Company 1 or 2 or 3?

The end result is I need to store the PIPED COMPANY into a hidden variable with conditional script applied.

Appreciate your assistance. Kind regards Paul.


Dominic Sharpe answered

    I’m not sure if this is an option for you but, you could consider essentially having three different versions of your “How well has [PIPED COMPANY] performed in the last 12 months?” question.

    One question for Company 1, one question for Company 2, etc.

    Each of these three questions would have the company name hard-coded and would not need to utilize piping.

    Instead, you would apply question logic to each of the three questions to determine what conditions would cause it to show.

    Show Company 1 question IF QA=1 (single response) AND Q1=3 (single response) and Q4A=6 (multiple response).

    Information on question logic can be found here:

    I hope this helps!

    Dominic Sharpe answered


      Question stats

      • Active
      • Views3717 times
      • Answers1 answer
      • Followers1 follower