Hi All, I am stuck with the problem bellow :
there is one drop down which let users select different type of submition e.g : weburl , blog comment , video comment etc. based on the above selection i need to show some specific fields to the user like when they select weburl i will show them one text field named "enter url" while on the other hand when they select blog comment there will be a textarea named "comment description" instead of "enter url" . I have used jQuery (hiding div based on the selection) to do this in my view . Now i want to know how do i use validation in the model to do this .. The validation rule is working perfectly var $validate = array( 'contribution_url' => array( 'rule' => 'url', 'message' => 'Make sure you enter a valid URL (starts with http:// or https://)' ) ); but if i just specify a validation rule for the "enter url" textfield then it is automatically get called when users have selected "blog comment " or "video comment" (the enter url field is not even been shown to the user). what i want is the validation should called only when the field is there. is there a way to do this or using Jquery it is not possible ? , sorry if i am asking stupid questions --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---