+ Reply to Thread
Results 1 to 2 of 2

Thread: Zend_Form custom validation

  1. #1
    ruka is offline Junior Member
    Join Date
    Jan 2009
    Posts
    10

    Default Zend_Form custom validation

    Hi,
    I need to have custom validation for a form. For example one field can be required or not depending on the values from other fields. Should I develop custom validators - but to be somehow connected to more field - or override is "isValid" form function?

    Thanks

  2. #2
    Eugen is offline Senior Member
    Join Date
    Sep 2008
    Location
    Croatia
    Posts
    400

    Default

    make your own validator and pass to him fields you need..
    dont hardcore that thing into validator class because its not reusable then and you will be breaking oop paterns

    this will get you started Custom validators for Zend_Form_Element Christer’s blog o’ fun

+ Reply to Thread

Similar Threads

  1. Zend_Form, Jquery, Ajax, validation
    By MeroeKush in forum Model-View-Controller (MVC)
    Replies: 0
    Last Post: 11-28-2009, 06:10 AM
  2. zend_form ajax: how to show the validation errors?
    By derrida in forum Model-View-Controller (MVC)
    Replies: 8
    Last Post: 11-27-2009, 07:38 AM
  3. Zend Form custom validation errors
    By bruggermugger in forum Core Infrastructure
    Replies: 5
    Last Post: 07-28-2009, 08:12 PM
  4. Custom Validation - Dojo Form - different methods
    By jlavere in forum Forum Feedback
    Replies: 0
    Last Post: 06-26-2009, 06:06 PM
  5. Zend_Form, date, dojo, validation
    By ruka in forum Core Infrastructure
    Replies: 2
    Last Post: 01-29-2009, 12:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts