Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Select List: Can't seem to get it right.

Quote Reply
Select List: Can't seem to get it right.
For some reason Im struggling with selection lists in the include.form.html template

I have:
Code:
<div class="value">
<select name="listingstatus" size="1">
<option <%if listingstatus eq ""%>value="On" selected="selected" <%endif%>>On</option>
<option <%if listingstatus eq "Off"%>selected="selected" value="Off" <%endif%>>Off</option>
<option <%if listingstatus eq "On"%>selected="selected" value="On" <%endif%>>On</option>
</select>
</div>

But no matter what link I go to modify, it always starts off with the value selected of Off even if the value is On for that link record.

Am I writing this wrong?
Subject Author Views Date
Thread Select List: Can't seem to get it right. Westin 2570 May 11, 2009, 4:06 AM
Post Re: [Westin] Select List: Can't seem to get it right.
Andy 2489 May 11, 2009, 5:12 AM