Hi , thanks for helping.

My validation rule is, allow all Serbian utf-8 chars (I tried some
with utf codes but it didn't work so this works), dot, coma, and a
dash and none other chars. It looks like this.

        'omrazeniPorf1' => array(
                        'notempty' => array(
                                'rule' => 
'/^[a-z0-9\.\,ŽžĐđŠšĆćČčабвгдђежзијклљмнњопрстћуфхцчћџШ\-
АБВГДЂЕЖЗИЈКЛЉМНЊОПРСТЋУФХЦЧЏШ\- ]{1,}$/i',
                                'message' => 'Morate uneti ime profesora',
                                'allowEmpty' => false,
                                //'required' => false,
                                //'last' => false, // Stop validation after 
this rule
                                //'on' => 'create', // Limit validation to 
'create' or 'update'
operations
                        ),
                ),

View for this concrete field is in my code like this it is a select
box with size 5 :
<?php
                                echo $this->Form->input('omiljeniProf1' , 
array('size'=>'5',
'type'=>'select','label' => '5.a) Ime prvog profesora
','onchange'=>'filltext(this,"mytext","PollAddForm")','style' =>
'width:200px'));
?>

where 'omiljeniProf1' is the name of the field, and onchange is a
function I wrote to automatically fill in some other text field..

Thanx



On Apr 24, 12:16 pm, acl68 <[email protected]> wrote:
> Hi Milos,
>
> can you post the validation rules for this checkboxes and radio buttons?
>
> Anja
>
> Am Sonntag, 24. April 2011, um 10:41:55 schrieb Miloš Vučinić:
>
>
>
>
>
>
>
> > Hi,
>
> > I have a form which has many select boxes as well as many radio
> > groups. The problem I'm having is that when I validate the data in the
> > model, I receive general error If some data is not entered, but it is
> > not shown under the radio button group or near a select box item.
>
> > If I place a regular input text field , the validation message is show
> > correctly.
>
> > Can anyone help me with this ? Did anyone experience similar
> > problems ?
>
> > All the best,
> > Milos Vucinic

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to