hello there,

I am trying to validate radio (where I did not set any default value)

<label>Gender:</label>
<?php echo $html->radio('Bloodbank/gender',array('Male','Female')) ?>
<?php echo $html->tagErrorMsg('Bloodbank/gender', 'gender is
required') ?>


in model
--------
var $validate = array(                                          
                'gender' => VALID_NUMBER, 
                .....
)

i also tried with VALID_NOT_EMPTY

But is seems that I dont get tagErrorMsg, when none is selected.


-- 
--salahuddin66

salahuddin66.blogspot.com
salahuddin66.deviantart.com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to