I’ve been using the following library http://www.formassembly.com/wForms/ a couple of times.
There is a topic related to wForms on Symfony:
where using of sfFormValidationPlugin is proposed to be used.
Are you interested? If so here is the way how I do that:
1. Download compressed wForms version: http://www.formassembly.com/wForms/v2.0/package/wforms_pack.js
and pickup + download CSS you prefer: http://www.formassembly.com/form-garden.php.
Put wforms.js into js folder and wforms.css into css folder. There may be also a couple of images which I’d recommend to put into images/wforms/ and modify wforms.css so it contains correct path to images.
2. Next step modify your view.yml so it has
stylesheets: [ wforms ]
3. Put the form html into your templates, e.g.
<?php echo input_tag(‘name’, $sf_data->get(‘sf_params’)->get(‘name’), array(‘size’ => 40)) ?>
<?php echo input_tag(’email’, $sf_data->get(‘sf_params’)->get(’email’), array(‘size’ => 40)) ?>
As aside note, I’ve figured out that wforms overrides all your forms so if you’d like to have different layout for different forms you’d need to use the following trick (that’s what I figured out but maybe there are better ways):
put your form element into the following tags:
and this way you would have wForms style cleaned out.