[ic] change state to a select in admin/entry

Scott Andreas joscan at comcast.net
Tue May 4 02:31:29 EDT 2004


On Mon, 2004-05-03 at 11:45, Jeannie Stevenson wrote:
> 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
> 
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
I verified your problem and you are correct. it doesn't quite work the
same as the checkout page does. will look into it unless I'm missing
something that other may have better foresight



More information about the interchange-users mailing list