Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5027

Script for length validation

$
0
0

I have also user this:-

var lodash = require("lodash.min.js");

if (event.request.payload.resource) {

lodash._.each(event.request.payload.resource, function( record ) {


    if (record.name.length > 15) {
        throw 'annual_revenue must be > 0';
    }
});

}

Still wont work


Viewing all articles
Browse latest Browse all 5027

Trending Articles