Have an idea?

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

Hide text and show image in a Constructed List

Hello, everyone!

I have a predefined list in which the items are a text and an image. Something like:

 <span class="text"> BRAND1</span><br><span class="graphics"><img src="[%GraphicsPath()%]BRAND1.png" alt="" border="0" width="80 height="80"></span> 

I use that list in various Constructed Lists, that sometimes also use other Constructed Lists.

But now, in a question, I would like to show  ONLY the image, and not the text. And, in this case, it is a question that uses a Constructed list that comes from other Constructed lists.

Please, someone knows if there is a simple command that I can use?

Thanks in advance.
asked Feb 25 by Renan Cintra

1 Answer

0 votes
Looks like you are seeking the use of the Mirror function.

Let's use a simple example. You display images at one question and then want to display text at another question.

You have a parent list.  Let's call it ImagesList. Assume you use this at Q1.

1-Image 1
2-Image 2
3-Image 3
4-Image 4
5-Image 5

At Q1, you use ImageList as your list to display.

At Q2, assume you only want to display those images selected at Q1.

Create a constructed list as such (call it Q2ConList) ...


At Q3, you want to display those images selected at Q1 but display the text instead of the images.

First we need a new parent list which includes the text only. Call it TextList.

1-Text 1
2-Text 2
3-Text 3
4-Text 4
5-Text 5

Create this constructed list (call it Q3ConList), which uses TextList as the parent list ...


Use Q3ConList as your list at Q3 which will display the text items selected at Q1.

So this method allows you to construct using different parent lists, courtesy of the handy SSI Script function "Mirror".

Apply this approach to your example.
answered Feb 26 by Paul Moon Platinum (59,025 points)
edited Feb 26 by Paul Moon