Re: trying to validate input
You have to edit your detail/edit view files to adjust the code for the fields you want to validate. For each field you want to validade, you can add a custoCode atribute, that has to render the field, and also has to add a div at its side. Then your javascript function instead of alert on screen, could set the message into this div, assign the validation message to the innerHTML div attribute.
Exemple of customCode:
PHP Code:
'customCode' => '<input type="text" name="field_name" id="field_name" value="$fields->field_name->value"> <div id="field_name_validation_message"> </div> '
Exemple of valitation messahe display:
HTML Code:
document.getElementById("field_name_validation_message").innerHTML="your_message";
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Bookmarks