For some reason Im struggling with selection lists in the include.form.html template
I have:
<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?
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?