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 11 forks source link

Send confirmation email field cannot handle variables #36

Closed cselex closed 6 months ago

cselex commented 7 months ago

Welcome!

Could you fix the email field to be able to handle email or variables? In the case of a confirmation email, I receive the email from a variable. I know it can be solved in code, but please fix it, it would be useful in the long run if you don't have to pay attention to this when updating. Thank you so much for your attention and participation.

plain-solutions-gmbh commented 6 months ago

Thank you for your request. Unfortunately, I do not fully understand your request. Can you perhaps add an example to the problem?

cselex commented 6 months ago

Hi! Yes I show you. When activate the "Visszaigazolás küldése" options I can add emails for the E-mail field (active field) but I need a variable here. image

plain-solutions-gmbh commented 6 months ago

What kind of variable..? Have you tried {{your-variable}}?

cselex commented 6 months ago

Yes I tried: image

plain-solutions-gmbh commented 6 months ago

I see. For security reason, this feature is not allowed. But you can use the success hook. The $request object contains also the fields data, where you can take the email variable and sending an email