Skip to content
This bundle performs validations of a form in javascript. (i18n compatible and several javascript frameworks supported)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
CacheWarmer Fix cache warmer - Delete all files Dec 11, 2011
EventListener Fix. auto_initialize does not exist for SF<2.3 Jun 12, 2013
Resources Update Nov 7, 2013
Tests Fixed test Sep 9, 2013
APYJsFormValidationBundle.php Initial commit Oct 24, 2011 [Tests] Covered uniqueEntity Aug 18, 2012
JsfvEvents.php Dispatch events before and after processing constraints of a form + M… Dec 4, 2011 This Bundle is no longer maintained Jan 4, 2014
composer.json Changed the name of ExposeTranslationBundle Feb 26, 2014
phpunit.xml.dist Fixed bugs: Aug 16, 2012

#This Bundle is no longer maintained.
Over the years, the structure of Symfony forms has evolved and this bundle has tried to follow its evolution without changing its own structure. However, this old structure is not adapted to new versions of Symfony.
Instead of starting from scratch and generate code similar to another Bundle, I'd rather advise you to use this other Bundle.


Changes to use this Bundle are really fast to apply.

It was a real pleasure to offer this kind of bundle for early versions of Symfony.

##Getting Started With JsFormValidationBundle

Version: 2.1 Build Status

Compatibility: Symfony >=2.1, <2.4.

This bundle generate automatically a script to perform validations of a form in javascript.

It use the same constraints defined with annotations in your entity or your document.

This bundle is g11n compatible.(i18n + L10n)



Please follow the steps given here to install this bundle.


This bundle is really easy to use. All you need is to call a twig function in your template.

{{ JSFV(form) }}

Template of a simple form:

<!-- MyProjectMyBundle:Default:index.html.twig -->

<!-- Include prerequisite librairies and bundles -->
<script type="text/javascript" src="__YOUR_FRAMEWORK_URL__"></script>
<script type="text/javascript" src="{{ asset('bundles/bazingaexposetranslation/js/translator.min.js') }}"></script>
<script type="text/javascript" src="{{ url('bazinga_exposetranslation_js', { 'domain_name': 'validators' }) }}"></script>

<!-- Call JsFormValidationBundle -->
{{ JSFV(form) }}

<!-- Display the form -->
<form action="{{ path('myform') }}" method="post" {{ form_enctype(form) }}>
	{{ form_widget(form) }}
	<input type="submit" />

See a full simple example here.

The following documents are available:


  • Script all possible constraints
  • Manage php, yml and xml defined constraints
You can’t perform that action at this time.