[ic] change state to a select in admin/entry
Jeannie Stevenson
webteam at wes-state.com
Mon May 3 14:45:55 EDT 2004
good day listies
I have a change that is needed to admin/entry. I need to have the state be a
dropdown
select like include/checkout/shipping_address instead of the input that it
is now.
I've tried to copy the code from the ...shipping_address file <TD>
[loop search="
fi=state.txt
sf=country
se=[default country US]
rf=state,name,country
un=yes
tf=sorder,name
ml=100
"
option=state]
[on-match]<SELECT onChange="check_avail(this.form)" NAME=state><option
value="">--[L]select
state[/L]--
[/on-match]
[list]
[loop-change 1][condition][loop-param country][/condition]
<OPTGROUP LABEL="[data table=country col=name key='[loop-param
country]']">
[/loop-change 1]
<OPTION VALUE="[loop-code]">[loop-pos 1]
[/list]
[on-match]</SELECT>[/on-match]
[no-match]<INPUT NAME=state VALUE="[value state]" SIZE=20>[/no-match]
[/loop]
</td>
but when I view it, it comes up with 56 select boxes with no states to
select in
them. Also all the inputs have the default="code" entered into the boxes
Can someone please point me into the direction to help me with this problem
as I've
been working on a solution for 3 days now :-(
Thankyou
ScottA
More information about the interchange-users
mailing list