On 9/1/07, Carl Franks <[EMAIL PROTECTED]> wrote:
> On 01/09/07, Barry Hoggard <[EMAIL PROTECTED]> wrote:
> > I have a form with an optional URL field.  How do I constrain that to
> > be a valid URL, but only if the user enters something?  I don't want
> > it to be required.
>
> All constraints should pass if the value is missing or the empty
> string - if it doesn't, it's a bug.

I see what's going on.  I thought it had suddenly become required
because adding the contsraint causes it to be marked as required when
I use

auto_constraint_class: required

at the top of my yml rather than

auto_constraint_class: %t

I hadn't understood how that part worked.  Thank you.

-- 
Barry Hoggard

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to