Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82710

Validator for three values and message

$
0
0

I want to ask how the validation - for example:

Field::inst('column1'),
Field::inst('column2'),
Field::inst('column3')

->validator(function($val, $data, $opts) {
       if (($data['column1'] + $data['column2'] + $data['column3']) > 15)) {
                        return 'big value ! Must 0 to 15';
                    }
                    return true;
                }),

Not working and please to help and thank you very much !


Viewing all articles
Browse latest Browse all 82710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>