[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Lower-case state not working in profile create


Bob Puff <suppressed> wrote:
> On an IC 5.2 cart, I just got a notice that when someone goes to create an account, they
> must enter the state abbreviations as upper-case... lower-case entry gives off the error:
> 
> "fl" not a valid two-letter state
> 
> How can I make it so that it either automatically upper-cases it, or is case-insensitive?
> 
You could add a couple of Filter directives to your catalog.cfg file,
like this:

    Filter  state    uc
    Filter  b_state  uc

You could add a "strip" filter in there too, to remove leading and
trailing whitespace, if you want that to happen.

See the following pages:

    http://www.interchange.rtfm.info/icdocs/config/Filter.html
    http://www.interchange.rtfm.info/icdocs/category:Filters.html

On the other hand, it would be better to show a list of state names,
in a <select> list, so that a correctly formatted value is always
provided by the form.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.