[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] error tag with std_label=1 and show_error=0
On Wed, 2002-08-14 at 17:00, Stefan Hornburg (Racke) wrote:
> Bill Carr <bill@worldwideimpact.com> writes:
>
> > On Fri, 2002-08-09 at 11:20, Dan Browning wrote:
> > > At 08:24 AM 8/9/2002 -0400, you wrote:
> > > >IC 4.8.5
> > > >
> > > >[error
> > > > name=fname
> > > > std_label='First Name'
> > > > show_label=1
> > > > show_error=0
> > > > required='[if cgi fname]0[else]1[/if]'
> > > >]
> > > >
> > > >Outputs the error as well as the label. I made a quick and dirty hack to
> > > >Interpolate.pm to change this behavior. Am I missing something here?
> > > >
> > > >I want to show the label highlighted in some way near the input box but
> > > >I do not want to show the error message itself in that area.
> > >
> > > I highly recommend that you look into the [formel] usertag. It has a lot
> > > of nice shortcuts to save on the repetitive-strain-disorder, and I believe
> > > it will do what you want with errors/labels as well.
> > Thank you for the tip but I can not make formel.tag not show the error.
>
> [formel name=foo label="Stupid box" signal="%s"] should do that trick.
Thank you. I will try it.
>
> >
> > It is my belief that [error] should not show the error if the show_error
> > parameter is set to '0'.
>
> Why do you want to use error if not for error display ??
I want to show the label in a different way indicating that this field
needs some more or better info.
It is probably easier to see what I want to do at
http://4bottlenose.com/ Just use my email address
(bill@worldwideimpact.com) on the form and press 'Submit'. There you
will see another form. The 'First Name' is required so I want to show it
in red with a star but I do not want to say 'blank' or 'required' next
to the form label. If the form is submitted without a required field I
want to say 'First Name is required' above the form but not next to the
input box label.
--
Bill Carr
Worldwide Impact
bill@worldwideimpact.com
413-253-6700