Validation chaining

Validation chaining

nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
edited November 2012 in Editor
Hi,
Can I chain validation methods?
Such as: numeric input with minMax length?

Please provide code sample.

Kind regards,
Nathan

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    A number with a maximum length? :-) Aren't you just looking for a minimum / maximum value for the number? The `minMaxNum` validation method would be used for that: http://editor.datatables.net/docs/current/php/class-DataTables.Editor.Validate.html#_minMaxNum

    Allan
  • nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
    What I meant was a strlen, but I can also write my own regex...
This discussion has been closed.