But how to validate in Sf1.1 a form_remote_tag? I've created the add_bet.yml and activated compat_10 in the settings.yml, it doesn't works. I don't see nothing in the generated code of the page (about js validation)...
The snippet of the form
- Code: Select all
<?php echo form_remote_tag(array(
'update' => 'item_list',
'url' => '@add_bet',
'loading' => "Element.show('indicator')",
'complete' => "Element.hide('indicator');".visual_effect('highlight', 'item_list'),
)) ?>
add_bet.yml (in the module validate dir)
- Code: Select all
fields:
credits:
required:
msg: The credit field cannot be left blank
sfNumberValidator:
nan_error: Please enter an integer
min: 1
min_error: The value must be at least one
max: 100
max_error: The value must be less than or equal to 100
Some help?
Thanks
Daniel
