Re: [FormBuilder] Conditional "required =>" possible?
Nate Wiger <nwiger <at> gmail.com>
2006-12-08 19:55:29 GMT
Glad you like FormBuilder - there are two issues here
1) Conditional validation: You could use a sub ref, or check out
Data::FormValidator, which is supported by FormBuilder. It supports
conditional validation.
2) Not making them appear: This is a client browser issue, so you'll
have to use "jsclick" and point it to an group of fields to hide. What
I would do is wrap them in a fieldset, give that its own id, then use
display:none via CSS to hide that dynamically. Check out jquery.com
for its functions, specifically "toggle" and "show/hide" that will
save you alot of work.
-Nate
On 12/8/06, not your business <allenjb1 <at> gmail.com> wrote:
> Hi there
>
> I am a newbie with Formbuilder, It is FANTASTIC - Good work
>
> anyway
>
> I have a rather large form, and fields farther down the form may depend on
> what the value of the field above it is.
>
> ie:
>
> Do you own a car? [ Yes/No ]
> if Yes, then I want to make the following 5 fields, which are dependant on
> the first field, become Required, otherwise I do not want to have them even
> show up (if possible)
>
> Is there a simple way to do this?
>
> if not, how are people doing it?
>
>
> if it is covered anyware, i have looked most of this afternoon without
> finding it, maybe you could point me to it?
>
> thanks
>
> _______________________________________________
> FBusers mailing list
> FBusers <at> formbuilder.org
> http://www.formbuilder.org/mailman/listinfo/fbusers
>
>
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers