If you’re trying to integrate Promises with your goodforms.com code, it shouldn’t be too hard because of our asynchronous function support. As a start, here’s an example:


goodforms('form_key', {
    onWhatever: function (something,callback) {
        your.stream.of.promises.then(function () {
            //your code here
        }).then(function (resolved_value) {
            // success! Everything resolved
            callback(resolved_value);
        }).else(function (err) {
            // error! Something failed in the stream of promises
            callback(false);
        })
    }
})