[html-formfu] Some FormFu questions from a beginner

John M. Dlugosz mk5h6fmfqx at snkmail.com
Wed Mar 23 10:02:23 GMT 2011


I just started using FormFu, and have made exactly one form for a web page.  I'm trying to 
add more features to it, and design several more for the site I'm working on.  I've 
experimented, and looked through the docs up and down, and still have questions.

I posted this originally on <http://www.perlmonks.org/?node_id=894782>, so anyone also on 
PerlMonks feel free to reply there and I'll still follow it.

* How do I generate an id on the div that wraps the actual control? If I put an id in the 
element block of the config, it goes on the input element itself, and is cross referenced 
by the for attribute of the label, but does nothing to the enclosing div. And CSS can't 
select based on children's features.

* I also want to put the checkbox label to the right of the box, and the documented 
reverse_single didn't do anything to it.

* On a related note, how do I make the checkbox initially checked when the form is 
displayed with no data? The value is already 1, and I guess that's what it would be if it 
was set. What I want to do is display a text area, and under that a submit button on the 
left, and a checkbox with "CC me" on the right, on the same level as the button.

I hope someone here can help me.
Thanks,
--John





More information about the HTML-FormFu mailing list