Guidelines Required for Using Cactiveform with ajax... Dnt knw where to write Mycode for validation of textarea input content

Hi,

I am a newbie.

I am using the Cactiveform. There are 2 textinput area… For each textinput i have to validate the content(i.e check for a symbol "+" present in textinput) before actionSave is called.

(i dont to use client sid validation i.e jquery)

I want to insert my code for checking(validating…i.e see for '+" sign). Where do i put this code. I also want to use ajax for this…

plz help me out…

plz also tel me any other soln possible

This is done with validators…

First check the documentation about validators - http://www.yiiframework.com/doc/guide/1.1/en/form.model#declaring-validation-rules

For your solution you would need a custom validator… search the forum there are many topics about that…

one is this - http://www.yiiframework.com/forum/index.php?/topic/12802-

Finished with the custom validator

Thanks mdomba… U guidelines were just perfect

Glad you solved it… would be nice if you could post here the validator you made here…

so that other users can see the solution… and if they have same/similar problem they can benefit from it…