This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
maciej11851
Hi guys, I'm creating my own plugin, but to do that I need to extend functionality of Form Builder plugin to perform extra task (in just one case) right after submiting a form. I tried something like this:
public function boot()
{
RenderForm::extend(function($model){
$model->bindEvent('model.onSubmit', function() use ($model) {
dd('here we go!');
});
});
}
But it's not working.
Renatio
Hi,
in version 1.1.5 I added Event that should resolve your problem. Look in documentation how to use it.
In short copy this code to boot function:
Event::listen('formBuilder.beforeSendMessage', function ($form, $data, $files) {
});
Write support topic for Form Builder plugin if will have problems.
phplee
Hi Guys,
how do i save the $files to my custom table/model.ive setup the model like so
public $attachMany = [
'files' => ['System\Models\File', 'public' => false]
];
thanks
Last updated
1-4 of 4