[ic] Is it possible to use the Error Tag on non checkout forms?

Dan Browning interchange-users@icdevgroup.org
Thu Aug 1 16:52:01 2002


At 03:22 PM 8/1/2002 -0400, you wrote:
>Quoting Brian Kosick (briank@nacs.net):
> > Hello all,
> >
> > I'm trying to figure out whether it is possible to use the error tag on a
> > page that doesn't lead to a order.  Ideally, I would like to setup a
> > profile in etc/profile.order, or profile.search, while, it looks like I 
> can
> > to it, by using a combination of mv_check and in-page [set][/set] 
> routines,
> > I would really like to use a profile, instead of having to (it seems)
> > recreate the wheel with each form, that I need to do checking on.
> >
> > example:
> >
> > [if type=explicit compare="[error all=1 show_var=1 keep=1]"]
> >      <P>
> >          <B>There were errors in your last submission:<br>
> >          <blockquote>
> >          <FONT color="__CONTRAST__">
> >                  [error all=1 keep=1 show_error=1 show_label=1 
> joiner="<br>"]
> >          </font>
> >          </blockquote>
> >          </p>
> >          <p>
> >      The areas you need to correct are shown in
> >      <FONT color="__CONTRAST__">this color</FONT> below.</B>
> >      </p>
> > [/if]
> >
> > <FORM ACTION="[process-target]" METHOD=POST>
> > <INPUT TYPE=hidden NAME=mv_todo VALUE=return>
>
>
> > <INPUT TYPE=hidden NAME=mv_profile VALUE=form_profile>
>
>Here's a big problem right away -- mv_profile is not for checking
>forms. That is mv_form_profile.

Also FYI, for quick debugging you can set the profile right in the page 
(i.e. not having to reconfig after profile changes):

[set form_profile]
         zip=zip
         &fatal = yes
[/set]

+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Dan Browning, Kavod Technologies <db@kavod.com>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fourth Law of Revision:
         It is usually impractical to worry beforehand about
interferences -- if you have none, someone will make one for you.