plain-solutions-gmbh / kirby-form-block-suite

This form plugin for Kirby offers you maximum flexibility and usability. It can be used as a block anywhere you needed. This repository replaces the obsolete version 2.0.
Other
38 stars 12 forks source link

add hook after success #19

Closed bnomei closed 1 year ago

bnomei commented 1 year ago

so custom events can be triggered

https://github.com/youngcut/kirby-form-block-suite/blob/766ce1ba8a6efae98f9f93402853793d158eda6f/classes/Form.php#L648

kirby()->trigger('formblock.success:after', [
   'request' => $this->request,
]);
bnomei commented 1 year ago
'hooks' => [
        'formblock.success:after' => function (\microman\FormRequest $request) {

        },
    ],
bnomei commented 1 year ago

@youngcut poke :D

plain-solutions-gmbh commented 1 year ago

Okay okay. It's implemented. 😜 Send me a pm for your free license as thanks for your improvement.