[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Set FormIgnore dynamically at runtime?
At 01:38 AM 3/29/2002 +0000, you wrote:
> >
> > Is there any way to set FormIgnore dynamically at runtime?
> >
> > I would like to make it so that a certain class of users (dealers) cannot
> > change their shipping address themselves, but regular users still
> > can. Three ideas:
> >
> > * A way to set FormIgnore dynamically (would be cool)
> >
> > * A way to set FormIgnore with some ITL mixed in?
> >
> > * Conditionally remove the HTML <INPUT...>'s for dealers [this method not
> > very secure]
> >
> > * Reset the values during mv_click
> >
> > * Any other suggestions?
> >
>How about something in the catalog.cfg along the lines of:
>
> Autoload <<EOA
> [perl]
> if ($Scratch->{'dealer'}){
> $Config->{FormIgnore}{somevar} = 1;
> }
> [/perl]
> EOA
Thank you Kevin, that is exactly what I was looking for. Works like a charm.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Dan Browning, Kavod Technologies <db@kavod.com>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This fortune is false.