Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Create Constructed list based on previous 3 questions

Hi,

I have 3 questions with 'Yes/No' type.

Q1. Do you have cellphone?
Q2. Do you have Laptop?
Q3. Do you have Tablet?

Q4. Need to show 'Cellphone' if 'Yes' selected in Q1, Likewise for other 2 questions.

I don't how to create Q4.
Please help.
asked May 22, 2013 by Abdul Bronze (2,630 points)

1 Answer

+1 vote
I would use the "Unverified Perl" option. It's documented in the help file, I would like to ask you to look there for a basic "HowTo" on Unverified Perl.

Code wise, it would be something like:

if (VALUE(Q1) == 1) {
  ADD("masterlist",1);
}
if (VALUE(Q2) == 1) {
  ADD("masterlist",2);
}
if (VALUE(Q3) == 1) {
  ADD("masterlist",3);
}

Please adopt the code to fit your use-case (ie, masterlist with the listname that contains the Cellphone, Laptop and Tablet as first, second and third item)
answered May 22, 2013 by lennaert.goris Bronze (655 points)
Its working...Thank You...
Cool, if you have the time, would you mind voting the answer up?
...