I would like to make an ajax call from a FormWidget, how can I achieve that?
When I e.g.:
oc.ajax('onSomething', {
success: function(data) {
console.log(data);
}
})
…the post request is sent to the controller I guess, in it’s context.
Can I use the OC ajax API for that?