[ic] default value on a drop down
Russ Mann
tech@khouse.org
Mon, 11 Dec 2000 15:16:08 -0700
Dear List,
Converting from MV 3.14-5 to IC 4.6.
Ok, I have a country select box on its own page in my multi-page checkout
process.
Here's the old relevant code:
[default name="b_country" default="US" set="1"]
<select mv="loop"
mv.prepend="[sort country:name]"
mv.search="ra=yes/se=./fi=country.asc/ml=700"
mv.option="b_country"
name="b_country">
<option value="[loop-code]"> [loop-data country name]
</select>
Here's the new relevant code:
[default name="b_country" set="US"]
<select name="b_country">
[loop option=country search="
ra=yes
fi=country
st=db
rf=code,name
ml=700
tf=name
"]
<option value="[loop-code]"> [loop-data country name]
[/loop]
</select>
The problem is I want US to come up as the default option on the list. The
old version worked, the new one doesnt.
Any ideas on how to set a default value for a drop down list?
Thanks,
Russ