Forum

Thread tagged as: Question, Problem

perch if - show / hide image

Hi,

I want Perch to show the image only if the user have selceted it, like this:

<perch:if id="showhide" value="show">
                    <perch:content id="showhide" type="select" options="Vis|show, Vis ikke|hide" allowempty="false" /><img src="img/underskrift.png" alt="" />
                </perch:if> 

This is working but i dont want it to display "show" on the front end.

Can anybody help :)

Simon Rothenborg

Simon Rothenborg 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Add suppress="true" to the select tag.

Thanks :-)