[ic] Clearing Values

Mike Heins interchange-users@interchange.redhat.com
Tue Dec 11 16:17:01 2001


Quoting Dan Browning (danpb@mail.com):
> > Hope some one has seen this before, as I'm pulling my hair on 
> > this one....
> > 
> > I'm trying to clear out some of the values when an order is 
> > submitted. This
> > code doesn't work correctly however:
> > 
> > [value name="shipToPO" set="" hide="1"]
> > 
> > is there something else I need to do?  I just want to clear 
> > out a "value"
> > 
> > The weird thing is that when I log the value to the error 
> > log, it appears to
> > be cleared, it almost seems like it is getting re-set some how???
> > 
> > Thanks in advance:
> > 
> > LA
> 
> [calc]$Values->{shipToPO} = "";[/calc]
> 

Yes, but the cases where I see reset to a previous value include:

	1. You are expecting this to persist after the user's next login
           without doing a [userdb save].

	2. You are performing the clear in a profile which occurs before
	   the normal values update. In that case, if you don't also
	   clear $CGI->{keyname} it will be re-set to what was submitted.

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

Be patient. God isn't finished with me yet.  -- unknown